Add GL_OES_draw_texture stubs.
BUG=18381077
Change-Id: I0dcb76e7662da6f1c38eeeca75e24a702da28abd
Reviewed-on: https://swiftshader-review.googlesource.com/1400
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/OpenGL/libGLES_CM/libGLES_CM.cpp b/src/OpenGL/libGLES_CM/libGLES_CM.cpp
index 57bdce9..9280c8b 100644
--- a/src/OpenGL/libGLES_CM/libGLES_CM.cpp
+++ b/src/OpenGL/libGLES_CM/libGLES_CM.cpp
@@ -4054,6 +4054,9 @@
return error(GL_INVALID_VALUE);
}
break;
+ case GL_TEXTURE_CROP_RECT_OES:
+ UNIMPLEMENTED();
+ break;
default:
return error(GL_INVALID_ENUM);
}
@@ -4081,7 +4084,7 @@
}
void GL_APIENTRY glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
- GLenum format, GLenum type, const GLvoid* pixels)
+ GLenum format, GLenum type, const GLvoid* pixels)
{
TRACE("(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, "
"GLsizei width = %d, GLsizei height = %d, GLenum format = 0x%X, GLenum type = 0x%X, "
@@ -4253,6 +4256,46 @@
UNIMPLEMENTED();
}
+void GL_APIENTRY glDrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height)
+{
+ UNIMPLEMENTED();
+}
+
+void GL_APIENTRY glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
+{
+ UNIMPLEMENTED();
+}
+
+void GL_APIENTRY glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height)
+{
+ UNIMPLEMENTED();
+}
+
+void GL_APIENTRY glDrawTexsvOES(const GLshort *coords)
+{
+ UNIMPLEMENTED();
+}
+
+void GL_APIENTRY glDrawTexivOES(const GLint *coords)
+{
+ UNIMPLEMENTED();
+}
+
+void GL_APIENTRY glDrawTexxvOES(const GLfixed *coords)
+{
+ UNIMPLEMENTED();
+}
+
+void GL_APIENTRY glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height)
+{
+ UNIMPLEMENTED();
+}
+
+void GL_APIENTRY glDrawTexfvOES(const GLfloat *coords)
+{
+ UNIMPLEMENTED();
+}
+
__eglMustCastToProperFunctionPointerType glGetProcAddress(const char *procname)
{
struct Extension
diff --git a/src/OpenGL/libGLES_CM/libGLES_CM.def b/src/OpenGL/libGLES_CM/libGLES_CM.def
index d894976..6ab41db 100644
--- a/src/OpenGL/libGLES_CM/libGLES_CM.def
+++ b/src/OpenGL/libGLES_CM/libGLES_CM.def
@@ -196,6 +196,14 @@
glBlendEquationOES
glBlendEquationSeparateOES
glBlendFuncSeparateOES
+ glDrawTexsOES
+ glDrawTexiOES
+ glDrawTexxOES
+ glDrawTexsvOES
+ glDrawTexivOES
+ glDrawTexxvOES
+ glDrawTexfOES
+ glDrawTexfvOES
; EGL dependencies
glCreateContext