DXGL r478 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r477
|
r478
|
r479
>
Date:
01:49, 4 August 2014
Author:
admin
Status:
new
Tags:
Comment:
Remove RGB8 fallback format from RGB555 to prevent test failure in FNDDRAW utility.
Add a fallback format for RGBA1555.
Modified paths:
/ddraw/TextureManager.c
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/TextureManager.c
—
—
@@ -155,8 +155,7 @@
156
156
break;
157
157
case 2: // 16-bit RGB555
158
158
texture->internalformats[0] = GL_RGB5_A1;
159
- texture->internalformats[1] = GL_RGB8;
160
- texture->internalformats[2] = GL_RGBA8;
159
+ texture->internalformats[1] = GL_RGBA8;
161
160
texture->format = GL_BGRA;
162
161
texture->type = GL_UNSIGNED_SHORT_1_5_5_5_REV;
163
162
break;
—
—
@@ -194,6 +193,7 @@
195
194
break;
196
195
case 9: // 16-bit RGBA1555
197
196
texture->internalformats[0] = GL_RGB5_A1;
197
+ texture->internalformats[1] = GL_RGBA8;
198
198
texture->format = GL_BGRA;
199
199
texture->type = GL_UNSIGNED_SHORT_1_5_5_5_REV;
200
200
break;
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