void pie_ScreenFlip(int clearMode) { GLbitfield clearFlags = 0; screenDoDumpToDiskIfRequired(); wzScreenFlip(); wzPerfFrame(); if (clearMode & CLEAR_OFF_AND_NO_BUFFER_DOWNLOAD) { return; } glDepthMask(GL_TRUE); clearFlags = GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT; if (clearMode & CLEAR_SHADOW) { clearFlags |= GL_STENCIL_BUFFER_BIT; } glClear(clearFlags); if (screen_GetBackDrop()) { screen_Display(); } }
void pie_ScreenFlip(int clearMode) { GLbitfield clearFlags = 0; screenDoDumpToDiskIfRequired(); wzScreenFlip(); if (!(clearMode & CLEAR_OFF_AND_NO_BUFFER_DOWNLOAD)) { glDepthMask(GL_TRUE); clearFlags = GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT; if (clearMode & CLEAR_SHADOW) { clearFlags |= GL_STENCIL_BUFFER_BIT; } } if (clearFlags) { glClear(clearFlags); } if (screen_GetBackDrop()) { screen_Upload(NULL, screen_getMapPreview()); } }