The modules here are only built when BUILD_EMULATOR_OPENGL is defined to true in your environment or your BoardConfig.mk (see tools/emulator/opengl/Android.mk) Change-Id: I5f32c35b4452fb5a7b4d5f9fc5870ec1da6032e6
19 lines
371 B
C
19 lines
371 B
C
#ifndef __GL_ERROR_LOG_H__
|
|
#define __GL_ERROR_LOG_H__
|
|
|
|
#include "ErrorLog.h"
|
|
|
|
#ifdef CHECK_GL_ERROR
|
|
void dbg(){}
|
|
#define GET_GL_ERROR(gl) \
|
|
{ \
|
|
int err = gl.glGetError(); \
|
|
if (err) { dbg(); ERR("Error: 0x%X in %s (%s:%d)\n", err, __FUNCTION__, __FILE__, __LINE__); } \
|
|
}
|
|
|
|
#else
|
|
#define GET_GL_ERROR(gl)
|
|
#endif
|
|
|
|
#endif //__GL_ERROR_LOG_H__
|