DXGL r336 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r335
|
r336
|
r337
>
Date:
02:12, 25 February 2013
Author:
admin
Status:
new
Tags:
Comment:
Set DDSCAPS_VIDEOMEMORY on new surfaces that are not marked DDSCAPS_SYSTEMMEMORY.
Remove breakpoint for RGB332 surfaces/textures, as their color ordering has been verified correct.
Modified paths:
/ddraw/glDirectDrawSurface.cpp
(modified) (
history
)
/ddraw/texture.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirectDrawSurface.cpp
—
—
@@ -77,6 +77,7 @@
78
78
hRC = renderer->hRC;
79
79
ddsd = *lpDDSurfaceDesc2;
80
80
}
81
+ if(!(ddsd.ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY)) ddsd.ddsCaps.dwCaps |= DDSCAPS_VIDEOMEMORY;
81
82
LONG sizes[6];
82
83
ddInterface->GetSizes(sizes);
83
84
if(ddsd.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
Index: ddraw/texture.cpp
—
—
@@ -82,7 +82,6 @@
83
83
texture->internalformat = GL_R3_G3_B2;
84
84
texture->format = GL_RGB;
85
85
texture->type = GL_UNSIGNED_BYTE_3_3_2;
86
- FIXME("Untested texture format RGB332\n");
87
86
break;
88
87
case 2: // 16-bit RGB555
89
88
texture->internalformat = GL_RGB5_A1;
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