fix canvas on hdpi

This commit is contained in:
2019-05-17 00:37:35 +02:00
parent f6187b7f86
commit c4cf0c7e47
5 changed files with 13 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ public:
void destroy();
void copy(const RTT& source);
void resize(int width, int height);
bool create(int width, int height, int tex = -1, GLint internal_format = GL_RGBA8);
bool create(int width, int height, int tex = -1, GLint internal_format = GL_RGBA8, bool depth_buffer = false);
bool recreate() { return create(w, h); }
void clear(glm::vec4 color = glm::vec4(0));
glm::ivec4 calc_bounds();