trunk/src/osd/sdl/drawogl.c
| r25388 | r25389 | |
| 2784 | 2784 | texture_info *texture, const render_primitive *prim, int shaderIdx) |
| 2785 | 2785 | { |
| 2786 | 2786 | 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 |
| 2789 | 2789 | float du, dv; |
| 2790 | 2790 | |
| 2791 | 2791 | if ( texture->type != TEXTURE_TYPE_SHADER || |
| r25388 | r25389 | |
| 2803 | 2803 | } |
| 2804 | 2804 | else |
| 2805 | 2805 | { |
| 2806 | | ustart = 0.0f; |
| 2807 | 2806 | ustop = (float)(prim->texture.width*texture->xprescale) / (float)texture->rawwidth_create; |
| 2808 | | vstart = 0.0f; |
| 2809 | 2807 | vstop = (float)(prim->texture.height*texture->yprescale) / (float)texture->rawheight_create; |
| 2810 | 2808 | } |
| 2811 | 2809 | } |
| r25388 | r25389 | |
| 2814 | 2812 | int surf_w_pow2 = get_valid_pow2_value (window->width, texture->texpow2); |
| 2815 | 2813 | int surf_h_pow2 = get_valid_pow2_value (window->height, texture->texpow2); |
| 2816 | 2814 | |
| 2817 | | ustart = 0.0f; |
| 2818 | 2815 | ustop = (float)(window->width) / (float)surf_w_pow2; |
| 2819 | | vstart = 0.0f; |
| 2820 | 2816 | vstop = (float)(window->height) / (float)surf_h_pow2; |
| 2821 | 2817 | } |
| 2822 | 2818 | else |