summaryrefslogtreecommitdiff
path: root/libs/rs/rsSampler.cpp
diff options
context:
space:
mode:
author Alex Sakhartchouk <alexst@google.com> 2010-12-15 09:59:58 -0800
committer Alex Sakhartchouk <alexst@google.com> 2010-12-15 10:11:31 -0800
commit0857196107d55bae312c12b72b115d25d5fee4f9 (patch)
tree2180a2809a3c945de178284fd44b8e5ed26fd42d /libs/rs/rsSampler.cpp
parent320a4beda312279e842a97d3af5b3f0b28cbe49d (diff)
Cleanup and refactoring of an earlier cl.
Change-Id: I5e356ed88375a1620846e0c500659e3b7ead5030
Diffstat (limited to 'libs/rs/rsSampler.cpp')
-rw-r--r--libs/rs/rsSampler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/rs/rsSampler.cpp b/libs/rs/rsSampler.cpp
index 54282a8dd8cb..e2757df10831 100644
--- a/libs/rs/rsSampler.cpp
+++ b/libs/rs/rsSampler.cpp
@@ -61,6 +61,7 @@ void Sampler::setupGL(const Context *rsc, const Allocation *tex) {
GL_LINEAR_MIPMAP_LINEAR, //RS_SAMPLER_LINEAR_MIP_LINEAR,
GL_REPEAT, //RS_SAMPLER_WRAP,
GL_CLAMP_TO_EDGE, //RS_SAMPLER_CLAMP
+ GL_LINEAR_MIPMAP_NEAREST, //RS_SAMPLER_LINEAR_MIP_NEAREST
};
GLenum transNP[] = {
@@ -69,6 +70,7 @@ void Sampler::setupGL(const Context *rsc, const Allocation *tex) {
GL_LINEAR, //RS_SAMPLER_LINEAR_MIP_LINEAR,
GL_CLAMP_TO_EDGE, //RS_SAMPLER_WRAP,
GL_CLAMP_TO_EDGE, //RS_SAMPLER_CLAMP
+ GL_LINEAR, //RS_SAMPLER_LINEAR_MIP_NEAREST,
};
// This tells us the correct texture type