mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
Backport Donko's hackfix to DX9 plugin. Move some code around. Add a couple of sanity checks.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@937 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -98,7 +98,7 @@ void TextureMngr::TCacheEntry::Destroy()
|
||||
*ptr = oldpixel;
|
||||
}
|
||||
texture = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void TextureMngr::Init()
|
||||
{
|
||||
@ -509,10 +509,10 @@ void TextureMngr::CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, bool
|
||||
GL_REPORT_ERRORD();
|
||||
|
||||
// create and attach the render target
|
||||
std::map<u32, DEPTHTARGET>::iterator itdepth = mapDepthTargets.find((h<<16)|w);
|
||||
std::map<u32, DEPTHTARGET>::iterator itdepth = mapDepthTargets.find((h << 16) | w);
|
||||
|
||||
if( itdepth == mapDepthTargets.end() ) {
|
||||
DEPTHTARGET& depth = mapDepthTargets[(h<<16)|w];
|
||||
if (itdepth == mapDepthTargets.end()) {
|
||||
DEPTHTARGET& depth = mapDepthTargets[(h << 16) | w];
|
||||
depth.framecount = frameCount;
|
||||
glGenRenderbuffersEXT( 1, &depth.targ);
|
||||
glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, depth.targ);
|
||||
|
Reference in New Issue
Block a user