started working on gl3 rasters

This commit is contained in:
aap
2020-04-27 20:51:35 +02:00
parent 4db08e15e8
commit eb71ca25d0
8 changed files with 294 additions and 58 deletions
+3 -1
View File
@@ -240,11 +240,13 @@ setActiveTexture(int32 n)
}
}
static void
uint32
bindTexture(uint32 texid)
{
uint32 prev = boundTexture[activeTexture];
boundTexture[activeTexture] = texid;
glBindTexture(GL_TEXTURE_2D, texid);
return prev;
}
// TODO: support mipmaps