DXGL r78 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r77
|
r78
|
r79
>
Date:
17:42, 15 January 2012
Author:
admin
Status:
new
Tags:
Comment:
Eliminate deprecated glPushAttrib/glPopAttrib
Modified paths:
/ddraw/glDirectDrawSurface.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirectDrawSurface.cpp
—
—
@@ -589,7 +589,6 @@
590
590
ddInterface->GetSizes(sizes);
591
591
int error;
592
592
error = SetFBO(texture,0,false);
593
- glPushAttrib(GL_VIEWPORT_BIT);
594
593
glViewport(0,0,fakex,fakey);
595
594
RECT destrect;
596
595
if(!lpDestRect)
—
—
@@ -710,7 +709,6 @@
711
710
glColor3f(1.0,1.0,1.0);
712
711
glDisable(GL_TEXTURE_2D);
713
712
SetFBO(0,0,false);
714
- glPopAttrib();
715
713
if(((ddsd.ddsCaps.dwCaps & (DDSCAPS_FRONTBUFFER)) &&
716
714
(ddsd.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)) ||
717
715
((ddsd.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE) &&
—
—
@@ -1118,6 +1116,7 @@
1119
1117
if(ddInterface->GetFullscreen())
1120
1118
{
1121
1119
ddInterface->GetSizes(sizes);
1120
+ glViewport(0,0,sizes[4],sizes[5]);
1122
1121
view[0] = (signed)-(sizes[4]-sizes[0])/2;
1123
1122
view[1] = (signed)(sizes[4]-sizes[0])/2+sizes[0];
1124
1123
view[2] = (signed)(sizes[5]-sizes[1])/2+sizes[1];
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