From 02c3e538e85e17d3dc6b551a2cf26d32426e5c73 Mon Sep 17 00:00:00 2001 From: Amit Feller Date: Mon, 16 May 2011 18:17:05 +0300 Subject: [PATCH] fixing bug in the name of GL function "glClearDepthf" --> "glClearDeapth" Change-Id: I9700bdb973d2dc01400078c349010a271004dbd9 --- .../opengl/host/libs/Translator/GLES_CM/GLDispatch.cpp | 2 +- .../emulator/opengl/host/libs/Translator/GLES_CM/GLDispatch.h | 2 +- .../emulator/opengl/host/libs/Translator/GLES_CM/GLESimp.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLDispatch.cpp b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLDispatch.cpp index 3c5be6154..af5c0d87b 100644 --- a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLDispatch.cpp +++ b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLDispatch.cpp @@ -64,7 +64,7 @@ void GLDispatch::dispatchFuncs() { LOAD_GL_FUNC(glBufferSubData); LOAD_GL_FUNC(glClear); LOAD_GL_FUNC(glClearColor); - LOAD_GL_FUNC(glClearDepthf); + LOAD_GL_FUNC(glClearDepth); LOAD_GL_FUNC(glClearStencil); LOAD_GL_FUNC(glClientActiveTexture); LOAD_GL_FUNC(glClipPlane); diff --git a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLDispatch.h b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLDispatch.h index af1518380..9dc320f14 100644 --- a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLDispatch.h +++ b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLDispatch.h @@ -41,7 +41,7 @@ public: void (GLAPIENTRY *glBufferSubData) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); void (GLAPIENTRY *glClear) (GLbitfield mask); void (GLAPIENTRY *glClearColor) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); - void (GLAPIENTRY *glClearDepthf) (GLclampd depth); + void (GLAPIENTRY *glClearDepth) (GLclampd depth); void (GLAPIENTRY *glClearStencil) (GLint s); void (GLAPIENTRY *glClientActiveTexture) ( GLenum texture ); void (GLAPIENTRY *glClipPlane) (GLenum plane, const GLdouble *equation); diff --git a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLESimp.cpp b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLESimp.cpp index 7a66b1818..d37791f5a 100644 --- a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLESimp.cpp +++ b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLESimp.cpp @@ -284,12 +284,12 @@ GL_API void GL_APIENTRY glClearColorx( GLclampx red, GLclampx green, GLclampx b GL_API void GL_APIENTRY glClearDepthf( GLclampf depth) { GET_CTX() - ctx->dispatcher().glClearDepthf(depth); + ctx->dispatcher().glClearDepth(depth); } GL_API void GL_APIENTRY glClearDepthx( GLclampx depth) { GET_CTX() - ctx->dispatcher().glClearDepthf(X2F(depth)); + ctx->dispatcher().glClearDepth(X2F(depth)); } GL_API void GL_APIENTRY glClearStencil( GLint s) {