summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authoromegadox <omegadox@gmail.com>2009-02-21 02:42:35 +0000
committeromegadox <omegadox@gmail.com>2009-02-21 02:42:35 +0000
commit228652b0709bcf7cd39ac447dee2f08ae4d05c48 (patch)
treed976ceabb9ec190fa6ab4d0fb04d3b5c39e4b210 /Source/Core
parente6ca85c059a2383c30ef99b19d58aa35c6d324fb (diff)
Some cleanup in OGL plugin and VideoCommon
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2329 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoCommon/Src/BPMemory.h1
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderGen.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/BPMemory.h b/Source/Core/VideoCommon/Src/BPMemory.h
index 47cf18bdd3..3826d1b464 100644
--- a/Source/Core/VideoCommon/Src/BPMemory.h
+++ b/Source/Core/VideoCommon/Src/BPMemory.h
@@ -29,6 +29,7 @@
#define BPMEM_ZMODE 0x40
#define BPMEM_BLENDMODE 0x41
#define BPMEM_CONSTANTALPHA 0x42
+#define BPMEM_SETDRAWDONE 0x45
#define BPMEM_ALPHACOMPARE 0xF3
#define BPMEM_LINEPTWIDTH 0x22
#define BPMEM_TEXINVALIDATE 0x66
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
index 317131395d..efe979af24 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
@@ -945,7 +945,7 @@ static bool WriteAlphaTest(char *&p)
static void WriteFog(char *&p)
{
- bool enabled = bpmem.fog.c_proj_fsel.fsel;
+ bool enabled = bpmem.fog.c_proj_fsel.fsel == 0 ? false : true;
if (enabled) {
if (bpmem.fog.c_proj_fsel.proj == 0) {