summaryrefslogtreecommitdiff
path: root/opengl/libagl/texture.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-06-22 18:04:45 -0700
committer Mathias Agopian <mathias@google.com> 2009-06-22 18:09:09 -0700
commitaaf4b6b3315fc546396a4b82c8c5cab0c2d2cb85 (patch)
treea0f381ad14b9f85f6ed6a9d23d55a09eab7727c6 /opengl/libagl/texture.cpp
parent72be40490951d3f9d0ada16fcf5288d0c3306d88 (diff)
add glTexParameteri() and fix glTexParameteriv()
Diffstat (limited to 'opengl/libagl/texture.cpp')
-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 b6f534b7ea50..14a910c87336 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 -