summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2011-01-27 10:17:13 +0000
committerskidau <skidau@gmail.com>2011-01-27 10:17:13 +0000
commit622af438f77604060ba055eced58bbd96fa18d93 (patch)
tree3cc24a09c4b9af68f2be17fcc5b772b61183b2e8 /Source/Core
parent0288742565d355e2968ace988f9b17a2a41703b1 (diff)
Fixed the black (alpha) textures in the 8ing games like Tatsunoko vs Capcom and the Naruto series when using the OpenGL plug-in. Thanks to jim.lee for the tip.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6930 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoCommon/Src/BPFunctions.cpp5
-rw-r--r--Source/Core/VideoCommon/Src/BPFunctions.h1
-rw-r--r--Source/Core/VideoCommon/Src/BPStructs.cpp2
3 files changed, 0 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/Src/BPFunctions.cpp b/Source/Core/VideoCommon/Src/BPFunctions.cpp
index ba0c1db519..a78f12c21a 100644
--- a/Source/Core/VideoCommon/Src/BPFunctions.cpp
+++ b/Source/Core/VideoCommon/Src/BPFunctions.cpp
@@ -197,11 +197,6 @@ skip:
Renderer::StorePixelFormat(new_format);
}
-void RestoreRenderState(const BPCmd &bp)
-{
- g_renderer->RestoreAPIState();
-}
-
bool GetConfig(const int &type)
{
switch (type)
diff --git a/Source/Core/VideoCommon/Src/BPFunctions.h b/Source/Core/VideoCommon/Src/BPFunctions.h
index b3bc916910..b38681a1b9 100644
--- a/Source/Core/VideoCommon/Src/BPFunctions.h
+++ b/Source/Core/VideoCommon/Src/BPFunctions.h
@@ -48,7 +48,6 @@ void SetColorMask(const BPCmd &bp);
void CopyEFB(const BPCmd &bp, const EFBRectangle &rc, const u32 &address, const bool &fromZBuffer, const bool &isIntensityFmt, const u32 &copyfmt, const int &scaleByHalf);
void ClearScreen(const BPCmd &bp, const EFBRectangle &rc);
void OnPixelFormatChange(const BPCmd &bp);
-void RestoreRenderState(const BPCmd &bp);
u8 *GetPointer(const u32 &address);
bool GetConfig(const int &type);
void SetTextureMode(const BPCmd &bp);
diff --git a/Source/Core/VideoCommon/Src/BPStructs.cpp b/Source/Core/VideoCommon/Src/BPStructs.cpp
index 139d32fc09..e32871427b 100644
--- a/Source/Core/VideoCommon/Src/BPStructs.cpp
+++ b/Source/Core/VideoCommon/Src/BPStructs.cpp
@@ -290,8 +290,6 @@ void BPWritten(const BPCmd& bp)
ClearScreen(bp, rc);
}
- RestoreRenderState(bp); // TODO: Remove this call, handle this in the plugins instead
-
break;
}
case BPMEM_LOADTLUT0: // This one updates bpmem.tlutXferSrc, no need to do anything here.