From 77090143a053b3626db59457201521335551be39 Mon Sep 17 00:00:00 2001 From: raven02 Date: Tue, 20 Aug 2013 11:58:34 +0800 Subject: [PATCH] SW : use GETexProjMapMod constants --- GPU/GLES/TransformPipeline.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GPU/GLES/TransformPipeline.cpp b/GPU/GLES/TransformPipeline.cpp index 9b05431ddb..d4ad30fefc 100644 --- a/GPU/GLES/TransformPipeline.cpp +++ b/GPU/GLES/TransformPipeline.cpp @@ -683,13 +683,13 @@ void TransformDrawEngine::SoftwareTransformAndDraw( Vec3f source; switch (gstate.getUVProjMode()) { - case 0: // Use model space XYZ as source + case GE_PROJMAP_POSITION: // Use model space XYZ as source source = pos; break; - case 1: // Use unscaled UV as source + case GE_PROJMAP_UV: // Use unscaled UV as source source = Vec3f(ruv[0], ruv[1], 0.0f); break; - case 2: // Use normalized normal as source + case GE_PROJMAP_NORMALIZED_NORMAL: // Use normalized normal as source if (reader.hasNormal()) { source = Vec3f(norm).Normalized(); } else { @@ -697,7 +697,7 @@ void TransformDrawEngine::SoftwareTransformAndDraw( source = Vec3f::AssignToAll(0.0f); } break; - case 3: // Use non-normalized normal as source! + case GE_PROJMAP_NORMAL: // Use non-normalized normal as source! if (reader.hasNormal()) { source = Vec3f(norm); } else {