Added frame buffer support.

This commit is contained in:
2021-05-05 07:37:25 -07:00
parent 469750b0a0
commit c3244274ce
10 changed files with 168 additions and 44 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;
}