Enable the glStringMarker logger when available
glStringMarker is usually only available when running under some kind of GL debugger, and can be used to insert strings into the GL command string. Writing logs using it can be useful, since it lets us correspond GL calls with what happens in compton. More info about the extension can be found here: https://www.khronos.org/registry/OpenGL/extensions/GREMEDY/GREMEDY_string_marker.txt Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -119,7 +119,7 @@ glx_hasglxext(session_t *ps, const char *ext) {
|
||||
* Check if a GLX extension exists.
|
||||
*/
|
||||
static inline bool
|
||||
glx_hasglext(session_t *ps, const char *ext) {
|
||||
glx_hasglext(const char *ext) {
|
||||
const char *gl_exts = (const char *) glGetString(GL_EXTENSIONS);
|
||||
if (!gl_exts) {
|
||||
log_error("Failed get GL extension list.");
|
||||
|
Reference in New Issue
Block a user