From 50edfb75d0ff859b594952658aa0a95fc6471aa4 Mon Sep 17 00:00:00 2001 From: raven02 Date: Mon, 9 Sep 2013 21:53:11 +0800 Subject: [PATCH] Add reporting for color test function --- GPU/GLES/FragmentShaderGenerator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPU/GLES/FragmentShaderGenerator.cpp b/GPU/GLES/FragmentShaderGenerator.cpp index e3c077dd68..f5577705a0 100644 --- a/GPU/GLES/FragmentShaderGenerator.cpp +++ b/GPU/GLES/FragmentShaderGenerator.cpp @@ -31,6 +31,7 @@ #include "Framebuffer.h" #include "../ge_constants.h" #include "../GPUState.h" +#include "Core/Reporting.h" #include #define WRITE p+=sprintf @@ -347,6 +348,7 @@ void GenerateFragmentShader(char *buffer) { if (enableColorTest) { GEComparison colorTestFunc = gstate.getColorTestFunction(); const char *colorTestFuncs[] = { "#", "#", " != ", " == " }; // never/always don't make sense + WARN_LOG_REPORT_ONCE(colortest, G3D, "Color test function : %s", colorTestFuncs[colorTestFunc]); u32 colorTestMask = gstate.getColorTestMask(); if (colorTestFuncs[colorTestFunc][0] != '#') { if (gstate_c.gpuVendor == GPU_VENDOR_POWERVR)