better support for gles2

This commit is contained in:
Konstantin Käfer
2014-03-05 16:58:46 +01:00
parent b97a9778ea
commit 69a5c0e15f
4 changed files with 24 additions and 6 deletions

View File

@@ -63,6 +63,10 @@ void Painter::setupShaders() {
pointShader = std::make_unique<PointShader>();
}
void Painter::resize(int width, int height) {
glViewport(0, 0, width, height);
}
void Painter::useProgram(uint32_t program) {
if (gl_program != program) {
glUseProgram(program);