DXGL r372 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r371‎ | r372 | r373 >
Date:23:20, 13 May 2013
Author:admin
Status:new
Tags:
Comment:
Disable vsync when unlocking primary.
Modified paths:
  • /ddraw/glDirectDrawSurface.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDrawSurface.cpp
@@ -1211,7 +1211,11 @@
12121212 if(((ddsd.ddsCaps.dwCaps & (DDSCAPS_FRONTBUFFER)) &&
12131213 (ddsd.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)) ||
12141214 ((ddsd.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE) &&
1215 - !(ddsd.ddsCaps.dwCaps & DDSCAPS_FLIP))) RenderScreen(texture,this);
 1215+ !(ddsd.ddsCaps.dwCaps & DDSCAPS_FLIP)))
 1216+ {
 1217+ swapinterval = 0;
 1218+ RenderScreen(texture,this);
 1219+ }
12161220 TRACE_EXIT(23,DD_OK);
12171221 return DD_OK;
12181222 }