DXGL r302 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r301
|
r302
|
r303
>
Date:
23:24, 10 January 2013
Author:
admin
Status:
new
Tags:
Comment:
Reset wireframe/point rendering mode before blitting or drawing screen.
Modified paths:
/ddraw/glRenderer.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glRenderer.cpp
—
—
@@ -955,6 +955,7 @@
956
956
glVertexAttribPointer(shaders[progtype].texcoord,2,GL_FLOAT,false,sizeof(BltVertex),&bltvertices[0].s);
957
957
}
958
958
SetCull(D3DCULL_NONE);
959
+ SetPolyMode(D3DFILL_SOLID);
959
960
glDrawRangeElements(GL_TRIANGLE_STRIP,0,3,4,GL_UNSIGNED_SHORT,bltindices);
960
961
SetFBO(0,0,false);
961
962
if(((ddsd.ddsCaps.dwCaps & (DDSCAPS_FRONTBUFFER)) &&
—
—
@@ -1014,6 +1015,7 @@
1015
1016
EnableArray(shaders[progtype].texcoord,true);
1016
1017
glVertexAttribPointer(shaders[progtype].texcoord,2,GL_FLOAT,false,sizeof(BltVertex),&bltvertices[0].s);
1017
1018
SetCull(D3DCULL_NONE);
1019
+ SetPolyMode(D3DFILL_SOLID);
1018
1020
glDrawRangeElements(GL_TRIANGLE_STRIP,0,3,4,GL_UNSIGNED_SHORT,bltindices);
1019
1021
SetFBO(0,0,false);
1020
1022
}
—
—
@@ -1130,6 +1132,7 @@
1131
1133
glVertexAttribPointer(shaders[progtype].rgb,3,GL_UNSIGNED_BYTE,true,sizeof(BltVertex),&bltvertices[0].r);
1132
1134
}
1133
1135
SetCull(D3DCULL_NONE);
1136
+ SetPolyMode(D3DFILL_SOLID);
1134
1137
glDrawRangeElements(GL_TRIANGLE_STRIP,0,3,4,GL_UNSIGNED_SHORT,bltindices);
1135
1138
glFlush();
1136
1139
if(hWnd) SwapBuffers(hDC);
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