summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-06-22 22:04:12 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-06-22 22:04:12 -0700
commitffa5a5a3dbef79dc6958c629080b1a6438a7b637 (patch)
tree6f55b73c1d1f654914b17f9b9243fd8734f135c4 /opengl
parent949070dd74be18ee3dcc87dd32f47f65374e3d53 (diff)
parent5277103db9033226814edc8fcba6f4ba4e846678 (diff)
downloadframeworks_base-ffa5a5a3dbef79dc6958c629080b1a6438a7b637.zip
frameworks_base-ffa5a5a3dbef79dc6958c629080b1a6438a7b637.tar.gz
frameworks_base-ffa5a5a3dbef79dc6958c629080b1a6438a7b637.tar.bz2
am 5277103d: Merge change 5035 into donut
Merge commit '5277103db9033226814edc8fcba6f4ba4e846678' * commit '5277103db9033226814edc8fcba6f4ba4e846678': add glTexParameteri() and fix glTexParameteriv()
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libagl/texture.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/opengl/libagl/texture.cpp b/opengl/libagl/texture.cpp
index b6f534b..14a910c 100644
--- a/opengl/libagl/texture.cpp
+++ b/opengl/libagl/texture.cpp
@@ -900,7 +900,7 @@ void glTexParameteriv(
memcpy(textureObject->crop_rect, params, 4*sizeof(GLint));
break;
default:
- ogles_error(c, GL_INVALID_ENUM);
+ texParameterx(target, pname, GLfixed(params[0]), c);
return;
}
}
@@ -919,6 +919,13 @@ void glTexParameterx(
texParameterx(target, pname, param, c);
}
+void glTexParameteri(
+ GLenum target, GLenum pname, GLint param)
+{
+ ogles_context_t* c = ogles_context_t::get();
+ texParameterx(target, pname, GLfixed(param), c);
+}
+
// ----------------------------------------------------------------------------
#if 0
#pragma mark -