mojoshader_opengl.c
changeset 1067 e6397ec11bc9
parent 1066 ff14db741834
child 1069 12e1db42bf75
equal deleted inserted replaced
1066:ff14db741834 1067:e6397ec11bc9
  2160         MOJOSHADER_shaderType shader_type = MOJOSHADER_TYPE_VERTEX;
  2160         MOJOSHADER_shaderType shader_type = MOJOSHADER_TYPE_VERTEX;
  2161         GLfloat *dstf = program->vs_uniforms_float4;
  2161         GLfloat *dstf = program->vs_uniforms_float4;
  2162         GLint *dsti = program->vs_uniforms_int4;
  2162         GLint *dsti = program->vs_uniforms_int4;
  2163         GLint *dstb = program->vs_uniforms_bool;
  2163         GLint *dstb = program->vs_uniforms_bool;
  2164         const MOJOSHADER_preshader *preshader = NULL;
  2164         const MOJOSHADER_preshader *preshader = NULL;
       
  2165         uint32 i;
       
  2166 
       
  2167         #if SUPPORT_PRESHADERS
  2165         int ran_preshader = 0;
  2168         int ran_preshader = 0;
  2166         uint32 i;
       
  2167 
       
  2168         if (program->vertex)
  2169         if (program->vertex)
  2169         {
  2170         {
  2170             preshader = program->vertex->parseData->preshader;
  2171             preshader = program->vertex->parseData->preshader;
  2171             if (preshader)
  2172             if (preshader)
  2172             {
  2173             {
  2187             } // if
  2188             } // if
  2188         } // if
  2189         } // if
  2189 
  2190 
  2190         if (ran_preshader)
  2191         if (ran_preshader)
  2191             ctx->generation++;
  2192             ctx->generation++;
       
  2193         #endif
  2192 
  2194 
  2193         for (i = 0; i < count; i++)
  2195         for (i = 0; i < count; i++)
  2194         {
  2196         {
  2195             UniformMap *map = &program->uniforms[i];
  2197             UniformMap *map = &program->uniforms[i];
  2196             const MOJOSHADER_shaderType uniform_shader_type = map->shader_type;
  2198             const MOJOSHADER_shaderType uniform_shader_type = map->shader_type;