Browse Source

shader: Fix compilation warning

rdb 1 year ago
parent
commit
ac68b85d1f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/gobj/shader.cxx

+ 2 - 2
panda/src/gobj/shader.cxx

@@ -1653,11 +1653,11 @@ compile_parameter(ShaderArgInfo &p, int *arg_dim) {
       (!cp_errchk_parameter_uniform(p))) {
     return false;
   }
-  bool k_prefix  = false;
+  //bool k_prefix  = false;
 
   // solve backward compatibility issue
   if (pieces[0] == "k") {
-    k_prefix = true;
+    //k_prefix = true;
     basename = basename.substr(2);
   }