minor optimizations over sprite path
This commit is contained in:
@ -152,7 +152,7 @@ void render_sprite_batch(const Primitive2D primitives[],
|
||||
|
||||
Vec2 uv0, uv1, uv2, uv3;
|
||||
|
||||
if (!sprite.repeat) {
|
||||
if (!batch.repeat) {
|
||||
const float wr = srcrect.w / dims.w;
|
||||
const float hr = srcrect.h / dims.h;
|
||||
const float xr = srcrect.x / dims.w;
|
||||
|
Reference in New Issue
Block a user