From af8fb702d54daa5f13d07921e583e95edcff916b Mon Sep 17 00:00:00 2001 From: Stas Gurtovoy Date: Wed, 3 Aug 2011 11:37:45 +0300 Subject: [PATCH] opengles emulator: fix bug in glTranslatex We need to convert the fixed values to floats before we call glTranslatef Change-Id: If164a8f67b32177e7229f4c5c2f6eff99680d685 --- .../emulator/opengl/host/libs/Translator/GLES_CM/GLEScmImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmImp.cpp b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmImp.cpp index e07c61d2f..0ab7ab5a7 100644 --- a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmImp.cpp +++ b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmImp.cpp @@ -1631,7 +1631,7 @@ GL_API void GL_APIENTRY glTranslatef( GLfloat x, GLfloat y, GLfloat z) { GL_API void GL_APIENTRY glTranslatex( GLfixed x, GLfixed y, GLfixed z) { GET_CTX() - ctx->dispatcher().glTranslatef(x,y,z); + ctx->dispatcher().glTranslatef(X2F(x),X2F(y),X2F(z)); } GL_API void GL_APIENTRY glVertexPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) {