File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -168,12 +168,6 @@ void C3Di_UpdateContext(void)
168168 int i ;
169169 C3D_Context * ctx = C3Di_GetContext ();
170170
171- if (ctx -> flags & C3DiF_Program )
172- {
173- shaderProgramConfigure (ctx -> program , (ctx -> flags & C3DiF_VshCode ) != 0 , (ctx -> flags & C3DiF_GshCode ) != 0 );
174- ctx -> flags &= ~(C3DiF_Program | C3DiF_VshCode | C3DiF_GshCode );
175- }
176-
177171 if (ctx -> flags & C3DiF_FrameBuf )
178172 {
179173 ctx -> flags &= ~C3DiF_FrameBuf ;
@@ -199,6 +193,12 @@ void C3Di_UpdateContext(void)
199193 GPUCMD_AddIncrementalWrites (GPUREG_SCISSORTEST_MODE , ctx -> scissor , 3 );
200194 }
201195
196+ if (ctx -> flags & C3DiF_Program )
197+ {
198+ shaderProgramConfigure (ctx -> program , (ctx -> flags & C3DiF_VshCode ) != 0 , (ctx -> flags & C3DiF_GshCode ) != 0 );
199+ ctx -> flags &= ~(C3DiF_Program | C3DiF_VshCode | C3DiF_GshCode );
200+ }
201+
202202 if (ctx -> flags & C3DiF_AttrInfo )
203203 {
204204 ctx -> flags &= ~C3DiF_AttrInfo ;
You can’t perform that action at this time.
0 commit comments