mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 12:49:47 +01:00
fix gl bug, textures sizes must be a power of 2
This commit is contained in:
@@ -140,7 +140,7 @@ void Graphics::drawTexturedRect(const Rect& screenCoords, const TexturePtr& text
|
||||
int bottom = screenCoords.bottom() + 1;
|
||||
int top = screenCoords.top();
|
||||
int left = screenCoords.left();
|
||||
const Size& textureSize = texture->getSize();
|
||||
const Size& textureSize = texture->getGlSize();
|
||||
|
||||
float textureRight = 0.0f;
|
||||
float textureBottom = 1.0f;
|
||||
|
||||
Reference in New Issue
Block a user