mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-20 10:18:13 +00:00
Use normalized texture coordinates
This commit is contained in:
@@ -986,8 +986,8 @@ GLES2_QueueGeometry(SDL_Renderer *renderer, SDL_RenderCommand *cmd, SDL_Texture
|
||||
*(verts++) = v->color.a * inv255f;
|
||||
|
||||
if (texture) {
|
||||
*(verts++) = v->tex_coord.x / texture->w;
|
||||
*(verts++) = v->tex_coord.y / texture->h;
|
||||
*(verts++) = v->tex_coord.x;
|
||||
*(verts++) = v->tex_coord.y;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user