diff --git a/tools/emulator/opengl/host/libs/GLESv1_dec/Android.mk b/tools/emulator/opengl/host/libs/GLESv1_dec/Android.mk index e0413651e..ba629495f 100644 --- a/tools/emulator/opengl/host/libs/GLESv1_dec/Android.mk +++ b/tools/emulator/opengl/host/libs/GLESv1_dec/Android.mk @@ -12,4 +12,8 @@ LOCAL_SRC_FILES := GLDecoder.cpp # for gl_types.h ! $(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/system/GLESv1_enc) +#For gl debbuging +#$(call emugl-export,CFLAGS,-DCHECK_GL_ERROR) +#$(call emugl-export,CFLAGS,-DDEBUG_PRINTOUT) + $(call emugl-end-module) diff --git a/tools/emulator/opengl/host/libs/GLESv2_dec/Android.mk b/tools/emulator/opengl/host/libs/GLESv2_dec/Android.mk index 265bac673..009d47b00 100644 --- a/tools/emulator/opengl/host/libs/GLESv2_dec/Android.mk +++ b/tools/emulator/opengl/host/libs/GLESv2_dec/Android.mk @@ -8,6 +8,10 @@ $(call emugl-gen-decoder,$(EMUGL_PATH)/system/GLESv2_enc,gl2) $(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/system/GLESv2_enc) $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)) +#For gl debbuging +#$(call emugl-export,CFLAGS,-DCHECK_GL_ERROR) +#$(call emugl-export,CFLAGS,-DDEBUG_PRINTOUT) + LOCAL_SRC_FILES := GL2Decoder.cpp $(call emugl-end-module) diff --git a/tools/emulator/opengl/host/libs/Translator/GLcommon/GLESvalidate.cpp b/tools/emulator/opengl/host/libs/Translator/GLcommon/GLESvalidate.cpp index a734858eb..5dc836bbc 100644 --- a/tools/emulator/opengl/host/libs/Translator/GLcommon/GLESvalidate.cpp +++ b/tools/emulator/opengl/host/libs/Translator/GLcommon/GLESvalidate.cpp @@ -7,7 +7,6 @@ bool GLESvalidate::textureEnum(GLenum e,unsigned int maxTex) { - if (!((e >= GL_TEXTURE0) && (e <= (GL_TEXTURE0 + maxTex)))) ERR("GLESvalidate::textureEnum: e = 0x%X max %d\n", e, maxTex); return e >= GL_TEXTURE0 && e <= (GL_TEXTURE0 + maxTex); } @@ -29,7 +28,6 @@ bool GLESvalidate::pixelType(GLEScontext * ctx, GLenum type) { case GL_FLOAT: return true; } - ERR("Error: GLESvalidate::pixelType 0x%X\n", type); return false; } @@ -57,7 +55,6 @@ bool GLESvalidate::pixelFrmt(GLEScontext* ctx ,GLenum format) { case GL_LUMINANCE_ALPHA: return true; } - ERR("Error: GLESvalidate::pixelFrmt 0x%X\n", format); return false; } @@ -107,8 +104,7 @@ bool GLESvalidate::textureTargetEx(GLenum target) { case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES: case GL_TEXTURE_2D: return true; - } - ERR("GLESvalidate::textureTargetEx 0x%X\n", target); + } return false; } diff --git a/tools/emulator/opengl/host/libs/libOpenglRender/Android.mk b/tools/emulator/opengl/host/libs/libOpenglRender/Android.mk index 53ff2a0b4..6dc35c00a 100644 --- a/tools/emulator/opengl/host/libs/libOpenglRender/Android.mk +++ b/tools/emulator/opengl/host/libs/libOpenglRender/Android.mk @@ -47,6 +47,9 @@ LOCAL_C_INCLUDES += $(EMUGL_PATH)/host/libs/Translator/include LOCAL_STATIC_LIBRARIES += libutils liblog +#For gl debbuging +#$(call emugl-export,CFLAGS,-DCHECK_GL_ERROR) + $(call emugl-end-module) endif # HOST_OS != darwin