Added frame buffer support.

This commit is contained in:
2021-05-05 07:37:25 -07:00
parent 8546a2bcf8
commit 0d997bc08b
12 changed files with 170 additions and 45 deletions

View File

@ -41,6 +41,8 @@ texture_t * textureCreate(int32_t width, int32_t height, pixel_t *pixels) {
GL_RGBA, GL_UNSIGNED_BYTE, pixels
);
}
glBindTexture(GL_TEXTURE_2D, 0);
return texture;
}