mirror of
https://github.com/aap/librw.git
synced 2026-07-22 23:07:02 +01:00
started working on gl3 rasters
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user