mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-08 07:29:56 +02:00
Merge pull request #12695 from gcalero/fix/current_context
Fix/current context
This commit is contained in:
commit
e46a8f022c
2 changed files with 3 additions and 7 deletions
|
@ -70,7 +70,6 @@ bool OffscreenGLCanvas::create(QOpenGLContext* sharedContext) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(USE_GLES)
|
|
||||||
if (gl::Context::enableDebugLogger()) {
|
if (gl::Context::enableDebugLogger()) {
|
||||||
_context->makeCurrent(_offscreenSurface);
|
_context->makeCurrent(_offscreenSurface);
|
||||||
QOpenGLDebugLogger *logger = new QOpenGLDebugLogger(this);
|
QOpenGLDebugLogger *logger = new QOpenGLDebugLogger(this);
|
||||||
|
@ -80,7 +79,6 @@ bool OffscreenGLCanvas::create(QOpenGLContext* sharedContext) {
|
||||||
logger->startLogging(QOpenGLDebugLogger::SynchronousLogging);
|
logger->startLogging(QOpenGLDebugLogger::SynchronousLogging);
|
||||||
_context->doneCurrent();
|
_context->doneCurrent();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,8 +17,7 @@ std::string GLBackend::getBackendShaderHeader() const {
|
||||||
|
|
||||||
#if defined(USE_GLES)
|
#if defined(USE_GLES)
|
||||||
static const std::string header(
|
static const std::string header(
|
||||||
R"SHADER(
|
R"SHADER(#version 310 es
|
||||||
#version 310 es
|
|
||||||
#extension GL_EXT_texture_buffer : enable
|
#extension GL_EXT_texture_buffer : enable
|
||||||
precision lowp float; // check precision 2
|
precision lowp float; // check precision 2
|
||||||
precision lowp samplerBuffer;
|
precision lowp samplerBuffer;
|
||||||
|
@ -26,8 +25,7 @@ precision lowp sampler2DShadow;
|
||||||
)SHADER");
|
)SHADER");
|
||||||
#else
|
#else
|
||||||
static const std::string header(
|
static const std::string header(
|
||||||
R"SHADER(
|
R"SHADER(#version 410 core
|
||||||
#version 410 core
|
|
||||||
)SHADER");
|
)SHADER");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue