DXGL r593 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r592‎ | r593 | r594 >
Date:20:44, 8 February 2015
Author:admin
Status:new
Tags:
Comment:
Sync before reading renderer caps.
Modified paths:
  • /ddraw/glDirectDraw.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDraw.cpp
@@ -1164,6 +1164,7 @@
11651165 mode.dmSize = sizeof(DEVMODE);
11661166 EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &mode);
11671167 glRenderer_Init(tmprenderer, 16, 16, mode.dmBitsPerPel, false, mode.dmDisplayFrequency, hGLWnd, NULL, FALSE);
 1168+ glRenderer_Sync(tmprenderer);
11681169 if (tmprenderer->ext->glver_major >= 3) fullrop = TRUE;
11691170 if (tmprenderer->ext->GLEXT_EXT_gpu_shader4) fullrop = TRUE;
11701171 glRenderer_Delete(tmprenderer);
@@ -1171,6 +1172,7 @@
11721173 }
11731174 else
11741175 {
 1176+ glRenderer_Sync(renderer);
11751177 if (renderer->ext->glver_major >= 3) fullrop = TRUE;
11761178 if (renderer->ext->GLEXT_EXT_gpu_shader4) fullrop = TRUE;
11771179 }