DXGL r373 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r372‎ | r373 | r374 >
Date:23:56, 14 May 2013
Author:admin
Status:new
Tags:
Comment:
Disable non-working GPU memory stats, which were executed from the wrong thread.
Modified paths:
  • /ddraw/glDirectDraw.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDraw.cpp
@@ -1488,7 +1488,7 @@
14891489 {
14901490 TRACE_ENTER(4,14,this,14,lpDDSCaps2,14,lpdwTotal,14,lpdwFree);
14911491 if(!this) TRACE_RET(HRESULT,23,DDERR_INVALIDOBJECT);
1492 - if(GLEXT_NVX_gpu_memory_info)
 1492+ /*if(GLEXT_NVX_gpu_memory_info)
14931493 {
14941494 if(lpdwTotal) glGetIntegerv(GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX,(GLint*)lpdwTotal);
14951495 if(lpdwFree) glGetIntegerv(GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX,(GLint*)lpdwFree);
@@ -1497,7 +1497,7 @@
14981498 TRACE_EXIT(23,DD_OK);
14991499 return DD_OK;
15001500 }
1501 - else
 1501+ else*/
15021502 {
15031503 MEMORYSTATUS memstat;
15041504 GlobalMemoryStatus(&memstat);