DXGL r364 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r363
|
r364
|
r365
>
Date:
01:09, 28 March 2013
Author:
admin
Status:
new
Tags:
Comment:
Finish fixing GetAvailableVidMem in trace build.
Modified paths:
/ddraw/glDirectDraw.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirectDraw.cpp
—
—
@@ -1503,8 +1503,8 @@
1504
1504
GlobalMemoryStatus(&memstat);
1505
1505
if(lpdwTotal) *lpdwTotal = memstat.dwTotalVirtual;
1506
1506
if(lpdwFree) *lpdwFree = memstat.dwAvailVirtual;
1507
- TRACE_VAR("*lpdwTotal",8,*lpdwTotal);
1508
- TRACE_VAR("*lpdwFree",8,*lpdwFree);
1507
+ if(lpdwTotal) TRACE_VAR("*lpdwTotal",8,*lpdwTotal);
1508
+ if(lpdwFree) TRACE_VAR("*lpdwFree",8,*lpdwFree);
1509
1509
TRACE_EXIT(23,DD_OK);
1510
1510
return DD_OK;
1511
1511
}
—
—
@@ -1966,8 +1966,8 @@
1967
1967
{
1968
1968
if(lpdwTotal) glGetIntegerv(GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX,(GLint*)lpdwTotal);
1969
1969
if(lpdwFree) glGetIntegerv(GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX,(GLint*)lpdwFree);
1970
- TRACE_VAR("*lpdwTotal",8,*lpdwTotal);
1971
- TRACE_VAR("*lpdwFree",8,*lpdwFree);
1970
+ if(lpdwTotal) TRACE_VAR("*lpdwTotal",8,*lpdwTotal);
1971
+ if(lpdwFree) TRACE_VAR("*lpdwFree",8,*lpdwFree);
1972
1972
TRACE_EXIT(23,DD_OK);
1973
1973
return DD_OK;
1974
1974
}
—
—
@@ -1977,8 +1977,8 @@
1978
1978
GlobalMemoryStatus(&memstat);
1979
1979
if(lpdwTotal) *lpdwTotal = memstat.dwTotalVirtual;
1980
1980
if(lpdwFree) *lpdwFree = memstat.dwAvailVirtual;
1981
- TRACE_VAR("*lpdwTotal",8,*lpdwTotal);
1982
- TRACE_VAR("*lpdwFree",8,*lpdwFree);
1981
+ if(lpdwTotal) TRACE_VAR("*lpdwTotal",8,*lpdwTotal);
1982
+ if(lpdwFree) TRACE_VAR("*lpdwFree",8,*lpdwFree);
1983
1983
TRACE_EXIT(23,DD_OK);
1984
1984
return DD_OK;
1985
1985
}
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version