DXGL r384 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r383
|
r384
|
r385
>
Date:
21:56, 9 June 2013
Author:
admin
Status:
new
Tags:
Comment:
Use EXT_direct_state_access to load matrices.
Modified paths:
/ddraw/glutil.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glutil.cpp
—
—
@@ -277,9 +277,17 @@
278
278
279
279
void SetMatrix(GLenum mode, GLfloat *mat1, GLfloat *mat2, bool *dirty)
280
280
{
281
- MatrixMode(mode);
282
- glLoadMatrixf(mat1);
283
- if(mode == GL_MODELVIEW) glMultMatrixf(mat2);
281
+ if(GLEXT_EXT_direct_state_access)
282
+ {
283
+ glMatrixLoadfEXT(mode,mat1);
284
+ if(mode == GL_MODELVIEW) glMatrixMultfEXT(mode,mat2);
285
+ }
286
+ else
287
+ {
288
+ MatrixMode(mode);
289
+ glLoadMatrixf(mat1);
290
+ if(mode == GL_MODELVIEW) glMultMatrixf(mat2);
291
+ }
284
292
if(dirty) *dirty = false;
285
293
}
286
294
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