Changeset View
Changeset View
Standalone View
Standalone View
3rdparty/ext_qt/0004-Fix-debug-on-openGL-ES.patch
- This file was added.
1 | From 4c1e4e693307c3169c6db488ad6bf6cff6aae864 Mon Sep 17 00:00:00 2001 | ||||
---|---|---|---|---|---|
2 | From: Dmitry Kazakov <dimula73@gmail.com> | ||||
3 | Date: Mon, 11 Feb 2019 18:07:20 +0300 | ||||
4 | Subject: [PATCH 4/4] Fix debug on openGL ES | ||||
5 | | ||||
6 | Change-Id: I08d1adf87b305c380a0f2177edf4ff9de109e4d6 | ||||
7 | --- | ||||
8 | src/gui/opengl/qopengldebug.cpp | 2 +- | ||||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||||
10 | | ||||
11 | diff --git a/src/gui/opengl/qopengldebug.cpp b/src/gui/opengl/qopengldebug.cpp | ||||
12 | index 2e628a2bd5..9f1bb76869 100644 | ||||
13 | --- a/src/gui/opengl/qopengldebug.cpp | ||||
14 | +++ b/src/gui/opengl/qopengldebug.cpp | ||||
15 | @@ -1366,7 +1366,7 @@ bool QOpenGLDebugLogger::initialize() | ||||
16 | | ||||
17 | #define GET_DEBUG_PROC_ADDRESS(procName) \ | ||||
18 | d->procName = reinterpret_cast< qt_ ## procName ## _t >( \ | ||||
19 | - d->context->getProcAddress(#procName) \ | ||||
20 | + d->context->getProcAddress(d->context->isOpenGLES() ? (#procName "KHR") : (#procName)) \ | ||||
21 | ); | ||||
22 | | ||||
23 | GET_DEBUG_PROC_ADDRESS(glDebugMessageControl); | ||||
24 | -- | ||||
25 | 2.20.1.windows.1 | ||||
26 | |