diff options
| author | Ray San <[email protected]> | 2017-12-20 12:35:12 +0100 |
|---|---|---|
| committer | Ray San <[email protected]> | 2017-12-20 12:35:12 +0100 |
| commit | e8bb53ed3520d2219cd7513b9c1fc20908dbf6f6 (patch) | |
| tree | 8376f69c3adba0e67862f932abc8d6092fd16af8 /src/rlgl.c | |
| parent | 61afd07bd7b3a96c6f0f460b668f52cf1a8bd90f (diff) | |
| download | raylib-e8bb53ed3520d2219cd7513b9c1fc20908dbf6f6.tar.gz raylib-e8bb53ed3520d2219cd7513b9c1fc20908dbf6f6.zip | |
Corrected issue on OpenGL ES compilation
Diffstat (limited to 'src/rlgl.c')
| -rw-r--r-- | src/rlgl.c | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -35,7 +35,7 @@ * * LICENSE: zlib/libpng * -* Copyright (c) 2014-2017 Ramon Santamaria (@raysan5) +* Copyright (c) 2014-2018 Ramon Santamaria (@raysan5) * * This software is provided "as-is", without any express or implied warranty. In no event * will the authors be held liable for any damages arising from the use of this software. @@ -1137,9 +1137,8 @@ void rlglInit(int width, int height) glGetFloatv(0x84FF, &maxAnisotropicLevel); // GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT } - if(strcmp(extList[i], (const char *)"GL_EXT_debug_marker") == 0) { - debugMarkerSupported = true; - } + // Debug marker support + if(strcmp(extList[i], (const char *)"GL_EXT_debug_marker") == 0) debugMarkerSupported = true; // Clamp mirror wrap mode supported if (strcmp(extList[i], (const char *)"GL_EXT_texture_mirror_clamp") == 0) texClampMirrorSupported = true; @@ -1296,7 +1295,9 @@ int rlGetVersion(void) // Set debug marker void rlSetDebugMarker(const char *text) { - if(debugMarkerSupported) glInsertEventMarkerEXT(0, text); // 0 terminated string +#if defined(GRAPHICS_API_OPENGL_33) + if (debugMarkerSupported) glInsertEventMarkerEXT(0, text); +#endif } // Load OpenGL extensions @@ -4232,8 +4233,3 @@ void TraceLog(int msgType, const char *text, ...) if (msgType == LOG_ERROR) exit(1); } #endif - -void rlSetMarker(const char *text) { - if(debugMarkerSupported) - glInsertEventMarkerEXT(0, text); //0 terminated string -} |
