OSDN Git Service

Fix retaining the processing routines when no update.
authorNicolas Capens <capn@google.com>
Thu, 23 Jun 2016 20:23:13 +0000 (16:23 -0400)
committerNicolas Capens <capn@google.com>
Thu, 23 Jun 2016 20:52:29 +0000 (20:52 +0000)
Change-Id: I891c320662b046a1a4a94cf24b86b386f2fdf66e
Reviewed-on: https://swiftshader-review.googlesource.com/5690
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
src/Renderer/Renderer.cpp
src/Renderer/Renderer.hpp

index 7e7ec40..b6ce802 100644 (file)
@@ -234,10 +234,6 @@ namespace sw
 
                        sync->lock(sw::PRIVATE);
 
-                       Routine *vertexRoutine;
-                       Routine *setupRoutine;
-                       Routine *pixelRoutine;
-
                        if(update || oldMultiSampleMask != context->multiSampleMask)
                        {
                                vertexState = VertexProcessor::update(drawType);
index 41d06e0..dc644e1 100644 (file)
@@ -480,6 +480,10 @@ namespace sw
                VertexProcessor::State vertexState;
                SetupProcessor::State setupState;
                PixelProcessor::State pixelState;
+
+               Routine *vertexRoutine;
+               Routine *setupRoutine;
+               Routine *pixelRoutine;
        };
 }