1

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?

4

1 回答 1

1

扩展字符串只是从底层 OpenGL ES 驱动程序报告的,因此该功能应该可以通过 NDK 代码获得。不过,它看起来确实从 Java 绑定中丢失了。

于 2016-08-19T10:35:14.793 回答