Previous 199869 Revisions Next

r25389 Sunday 22nd September, 2013 at 02:39:30 UTC by R. Belmont
SDL: work around incorrect warning generated by Clang [R. Belmont]
[src/osd/sdl]drawogl.c

trunk/src/osd/sdl/drawogl.c
r25388r25389
27842784                           texture_info *texture, const render_primitive *prim, int shaderIdx)
27852785{
27862786   sdl_info *sdl = (sdl_info *) window->dxdata;
2787   float ustart, ustop;            // beginning/ending U coordinates
2788   float vstart, vstop;            // beginning/ending V coordinates
2787   float ustart = 0.0f, ustop = 0.0f;            // beginning/ending U coordinates
2788   float vstart = 0.0f, vstop = 0.0f;            // beginning/ending V coordinates
27892789   float du, dv;
27902790
27912791   if ( texture->type != TEXTURE_TYPE_SHADER ||
r25388r25389
28032803      }
28042804      else
28052805      {
2806         ustart = 0.0f;
28072806         ustop  = (float)(prim->texture.width*texture->xprescale) / (float)texture->rawwidth_create;
2808         vstart = 0.0f;
28092807         vstop  = (float)(prim->texture.height*texture->yprescale) / (float)texture->rawheight_create;
28102808      }
28112809   }
r25388r25389
28142812      int surf_w_pow2  = get_valid_pow2_value (window->width, texture->texpow2);
28152813      int surf_h_pow2  = get_valid_pow2_value (window->height, texture->texpow2);
28162814
2817      ustart = 0.0f;
28182815      ustop  = (float)(window->width) / (float)surf_w_pow2;
2819      vstart = 0.0f;
28202816      vstop  = (float)(window->height) / (float)surf_h_pow2;
28212817   }
28222818   else

Previous 199869 Revisions Next


© 1997-2024 The MAME Team