diff options
m--------- | depends/mgl | 0 | ||||
-rw-r--r-- | tests/main.cpp | 4 |
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; |