Reworking everything about shaders.
This commit is contained in:
@ -45,8 +45,13 @@ void textureInit(texture_t *texture, int32_t width, int32_t height,
|
||||
GL_RGBA, GL_UNSIGNED_BYTE, pixels
|
||||
);
|
||||
}
|
||||
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
|
||||
textureBind(texture, 0x00);
|
||||
}
|
||||
|
||||
void textureBind(texture_t *texture, textureslot_t slot) {
|
||||
glActiveTexture(GL_TEXTURE0 + slot);
|
||||
glBindTexture(GL_TEXTURE_2D, texture->id);
|
||||
}
|
||||
|
||||
void textureBufferPixels(texture_t *texture,
|
||||
|
Reference in New Issue
Block a user