From 7ba6fc51edd48b49c7e6fbf9eeb0823d0cce153a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 22 Nov 2012 11:56:04 +0100 Subject: [PATCH] Fixed compilation for OpenGL ES. --- src/DebugMarker.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/DebugMarker.cpp b/src/DebugMarker.cpp index 490128344..e4ec3d21a 100644 --- a/src/DebugMarker.cpp +++ b/src/DebugMarker.cpp @@ -25,11 +25,16 @@ namespace Magnum { DebugMarker::MarkImplementation DebugMarker::markImplementation = &DebugMarker::markImplementationDefault; void DebugMarker::initializeContextBasedFunctionality(Context* context) { + /** @todo Re-enable when extension wrangler is available for ES */ + #ifndef MAGNUM_TARGET_GLES if(context->isExtensionSupported()) { Debug() << "DebugMarker: using" << Extensions::GL::GREMEDY::string_marker::string() << "features"; markImplementation = &DebugMarker::markImplementationDebugger; } + #else + static_cast(context); + #endif } void DebugMarker::markImplementationDefault(const std::string&) {} @@ -41,6 +46,8 @@ void DebugMarker::markImplementationDebugger(const std::string& string) { #else #if 0 glInsertEventMarkerEXT(string.length(), string.c_str()); + #else + static_cast(string); #endif #endif }