aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-05 14:45:35 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-05 14:45:35 +0100
commit0a22a501932e4c462fc904bcf5da541a226e4308 (patch)
treeef67c6984d02966ee51d6543f7907d98e81fc58b
parentd7383b2c1f4e8d921b6e68d51a9575a6e14d5259 (diff)
Fix font being corrupt with certain sizes, fix image being corrupt if its rgb, fix window resize incorrect size
m---------depends/mgl0
-rw-r--r--tests/main.cpp4
2 files changed, 2 insertions, 2 deletions
diff --git a/depends/mgl b/depends/mgl
-Subproject 7dd8b0cc0561c5fa0c9096b79fb7f0647b3470b
+Subproject ccb3e58071b3e807109918184727b305df8b96a
diff --git a/tests/main.cpp b/tests/main.cpp
index 163aece..98fa34c 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -20,7 +20,7 @@ struct Delegate {
rect.set_color({255, 0, 0, 255});
window->draw(rect);
- shader_program->set_uniform("resolution", mgl::vec2f(window->get_size().x, window->get_size().y));
+ shader_program->set_uniform("resolution", mgl::vec2f(texture->get_size().x, texture->get_size().y));
mgl::Sprite sprite(texture, { 100.0f - 10.0f, 0.0f });
sprite.set_color({255, 255, 255, 128});
@@ -49,7 +49,7 @@ int main(int argc, char **argv) {
return 1;
mgl::Texture texture;
- if(!texture.load_from_file("depends/mgl/tests/X11.png"))
+ if(!texture.load_from_file("depends/mgl/tests/X11.jpg"))
return 1;
mgl::Font font;