DXGL r477 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r476
|
r477
|
r478
>
Date:
01:45, 4 August 2014
Author:
admin
Status:
new
Tags:
Comment:
Deinitialize FBO when repairing texture.
Modified paths:
/ddraw/glRenderer.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glRenderer.cpp
—
—
@@ -987,6 +987,9 @@
988
988
if (This->util->SetFBO(dest) == GL_FRAMEBUFFER_COMPLETE) break;
989
989
if (!dest->texture->internalformats[1]) break;
990
990
TextureManager_FixTexture(This->texman, dest->texture, (dest->bigbuffer ? dest->bigbuffer : dest->buffer), &dest->dirty);
991
+ This->util->SetFBO((FBO*)NULL);
992
+ dest->fbo.fbcolor = NULL;
993
+ dest->fbo.fbz = NULL;
991
994
} while (1);
992
995
This->util->SetViewport(0,0,dest->fakex,dest->fakey);
993
996
This->util->DepthTest(false);
—
—
@@ -1454,6 +1457,9 @@
1455
1458
if (This->util->SetFBO(target) == GL_FRAMEBUFFER_COMPLETE) break;
1456
1459
if (!target->texture->internalformats[1]) break;
1457
1460
TextureManager_FixTexture(This->texman, target->texture, (target->bigbuffer ? target->bigbuffer : target->buffer), &target->dirty);
1461
+ This->util->SetFBO((FBO*)NULL);
1462
+ target->fbo.fbcolor = NULL;
1463
+ target->fbo.fbz = NULL;
1458
1464
} while (1);
1459
1465
int clearbits = 0;
1460
1466
if(dwFlags & D3DCLEAR_TARGET)
—
—
@@ -1831,6 +1837,9 @@
1832
1838
if (!device->glDDS7->texture->internalformats[1]) break;
1833
1839
TextureManager_FixTexture(This->texman, device->glDDS7->texture,
1834
1840
(device->glDDS7->bigbuffer ? device->glDDS7->bigbuffer : device->glDDS7->buffer), &device->glDDS7->dirty);
1841
+ This->util->SetFBO((FBO*)NULL);
1842
+ device->glDDS7->fbo.fbcolor = NULL;
1843
+ device->glDDS7->fbo.fbz = NULL;
1835
1844
} while (1);
1836
1845
This->util->SetViewport(device->viewport.dwX, device->viewport.dwY, device->viewport.dwWidth, device->viewport.dwHeight);
1837
1846
This->util->SetDepthRange(device->viewport.dvMinZ,device->viewport.dvMaxZ);
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