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