mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:12:53 +02:00
Fix mac frame player
This commit is contained in:
parent
c2dca9d0e8
commit
f45166f508
1 changed files with 4 additions and 1 deletions
|
@ -32,9 +32,12 @@ void RenderThread::initialize(QWindow* window) {
|
||||||
|
|
||||||
_window = window;
|
_window = window;
|
||||||
#ifdef USE_GL
|
#ifdef USE_GL
|
||||||
|
_window->setFormat(getDefaultOpenGLSurfaceFormat());
|
||||||
_context.setWindow(window);
|
_context.setWindow(window);
|
||||||
_context.create();
|
_context.create();
|
||||||
_context.makeCurrent();
|
if (!_context.makeCurrent()) {
|
||||||
|
qFatal("Unable to make context current");
|
||||||
|
}
|
||||||
QOpenGLContextWrapper(_context.qglContext()).makeCurrent(_window);
|
QOpenGLContextWrapper(_context.qglContext()).makeCurrent(_window);
|
||||||
glGenTextures(1, &_externalTexture);
|
glGenTextures(1, &_externalTexture);
|
||||||
glBindTexture(GL_TEXTURE_2D, _externalTexture);
|
glBindTexture(GL_TEXTURE_2D, _externalTexture);
|
||||||
|
|
Loading…
Reference in a new issue