DXGL r260 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r259
|
r260
|
r261
>
Date:
23:40, 7 September 2012
Author:
admin
Status:
new
Tags:
Comment:
Remove glTexSubImage texture uploads due to compatibility issues.
Modified paths:
/ddraw/texture.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/texture.cpp
—
—
@@ -198,13 +198,9 @@
199
199
{
200
200
SetActiveTexture(0);
201
201
SetTexture(0,texture);
202
- if((width != texture->width) || (height != texture->height))
203
- {
204
- texture->width = width;
205
- texture->height = height;
206
- glTexImage2D(GL_TEXTURE_2D,level,texture->internalformat,width,height,0,texture->format,texture->type,data);
207
- }
208
- else glTexSubImage2D(GL_TEXTURE_2D,level,0,0,width,height,texture->format,texture->type,data);
202
+ texture->width = width;
203
+ texture->height = height;
204
+ glTexImage2D(GL_TEXTURE_2D,level,texture->internalformat,width,height,0,texture->format,texture->type,data);
209
205
}
210
206
211
207
void DownloadTextureClassic(TEXTURE *texture, int level, void *data)
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