Browse Source

Fix gcc/clang compile error

rdb 10 years ago
parent
commit
c224f351ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/glstuff/glShaderContext_src.cxx

+ 1 - 1
panda/src/glstuff/glShaderContext_src.cxx

@@ -1186,7 +1186,7 @@ issue_parameters(int altered) {
       }
       }
 
 
       GLint p = _glsl_parameter_map[spec._id._seqno];
       GLint p = _glsl_parameter_map[spec._id._seqno];
-      int array_size = min(spec._dim[0], ptr_data->_size / spec._dim[1]);
+      int array_size = min(spec._dim[0], (int)ptr_data->_size / spec._dim[1]);
       switch (spec._type) {
       switch (spec._type) {
       case Shader::SPT_float:
       case Shader::SPT_float:
         {
         {