sydd
sydd

Reputation: 1946

Is glDebugMessageCallbackKHR implemented in Android 6?

I am trying to implement the OpenGL function for debug callbacks added with the Android OpenGL ES 3.1 extension pack in Android 5.0. When I try to setup a callback: GLES31Ext.glDebugMessageCallbackKHR(myCallback); it throws java.lang.UnsupportedOperationException: not yet implemented. This is on a Sony Xperia Z5 running Android 6.0, querying OpenGL context version returns OpenGL ES 3.1. Querying the list of supported OpenGL extensions returns that the extension GL_KHR_debug is avaialble (which this function is a part of).

Googling returned no useful results, my only hint is this file in the Android source repo: https://android.googlesource.com/platform/frameworks/native/+/android-6.0.1_r63/opengl/tools/glgen/stubs/gles11/glDebugMessageCallbackKHR.cpp

Does this mean Google has not implemented this function although my device reports that this functionality is supported? Or this is just an issue with my device?

Upvotes: 1

Views: 613

Answers (1)

solidpixel
solidpixel

Reputation: 12084

The extension string is simply reported from the underlying OpenGL ES driver, so the functionality should be available via NDK code. It does look like it's missing from the Java bindings though.

Upvotes: 1

Related Questions