GHOST/EGL: Only draw grey into buffers attached to windows
Avoid redundant drawing, match GHOST/GLX behavior.
This commit is contained in:
@@ -582,8 +582,10 @@ GHOST_TSuccess GHOST_ContextEGL::initializeDrawingContext()
|
||||
goto error;
|
||||
}
|
||||
|
||||
initClearGL();
|
||||
::eglSwapBuffers(m_display, m_surface);
|
||||
if (m_nativeWindow != 0) {
|
||||
initClearGL();
|
||||
::eglSwapBuffers(m_display, m_surface);
|
||||
}
|
||||
|
||||
return GHOST_kSuccess;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user