Error checking function. More...
Go to the source code of this file.
Defines | |
#define | R_CheckError() R_CheckErrorDebug(__FILE__, __LINE__, __PRETTY_FUNCTION__) |
#define | GL_ERROR_TRANSLATE(e) case e: return #e; |
Functions | |
static const char * | R_TranslateError (GLenum error) |
static int | R_CheckErrorDebug (const char *file, int line, const char *function) |
Checks for opengl errors. |
Error checking function.
Definition in file r_error.h.
#define GL_ERROR_TRANSLATE | ( | e | ) | case e: return #e; |
Definition at line 28 of file r_error.h.
Referenced by R_TranslateError().
#define R_CheckError | ( | ) | R_CheckErrorDebug(__FILE__, __LINE__, __PRETTY_FUNCTION__) |
Definition at line 27 of file r_error.h.
Referenced by R_BeginFrame(), R_BindTexture_(), R_Clear(), R_Color(), R_CreateFramebuffer(), R_DeleteImage(), R_DrawAliasFrameLerp(), R_DrawBloom(), R_DrawModelDirect(), R_DrawSurfaceStage(), R_FontCleanCache(), R_FontGenerateTexture(), R_FreeWorldImages(), R_Init(), R_InitExtensions(), R_InitFBObjects(), R_RenderFrame(), R_ScreenShot(), R_SetDefaultState(), R_SetSurfaceState(), R_Setup2D(), R_Setup3D(), R_SetupFrustum(), R_ShutdownImages(), R_ShutdownProgram(), R_SphereRender(), R_TextureMode(), R_UploadData(), R_UploadLightmapBlock(), R_UploadTexture(), and R_UseFramebuffer().
static int R_CheckErrorDebug | ( | const char * | file, | |
int | line, | |||
const char * | function | |||
) | [static] |
Checks for opengl errors.
Definition at line 58 of file r_error.h.
References Com_Printf(), error(), GLenum, cvar_s::integer, r_checkerror, and R_TranslateError().
static const char* R_TranslateError | ( | GLenum | error | ) | [inline, static] |
Definition at line 30 of file r_error.h.
References GL_ERROR_TRANSLATE.
Referenced by R_CheckErrorDebug(), and R_InitExtensions().