mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
egldisplay: Fix GL_INVALID_OPERATION with headless pbuffer
This commit is contained in:
parent
389b24e695
commit
21d7a83bfc
@ -38,9 +38,10 @@ eglGraphicsBuffer(GraphicsEngine *engine, GraphicsPipe *pipe,
|
|||||||
DCAST_INTO_V(egl_pipe, _pipe);
|
DCAST_INTO_V(egl_pipe, _pipe);
|
||||||
_pbuffer = EGL_NO_SURFACE;
|
_pbuffer = EGL_NO_SURFACE;
|
||||||
|
|
||||||
// Since the pbuffer never gets flipped, we get screenshots from the same
|
// EGL pbuffers only have a back buffer (see 2.2.2 in spec), and it is never
|
||||||
// buffer we draw into.
|
// flipped (eglSwapBuffers is a no-op).
|
||||||
_screenshot_buffer_type = _draw_buffer_type;
|
_draw_buffer_type = RenderBuffer::T_back;
|
||||||
|
_screenshot_buffer_type = RenderBuffer::T_back;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user