GHOST/EGL: Only draw grey into buffers attached to windows
Avoid redundant drawing, match GHOST/GLX behavior.
This commit is contained in:
parent
b1d3097fa9
commit
a123fc9e22
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue