summaryrefslogtreecommitdiff
path: root/camera.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-02-19 18:31:01 -0500
committerpommicket <pommicket@gmail.com>2025-02-19 18:31:01 -0500
commit99ffd21ef873cc30ac37c901ddd374fb26d41939 (patch)
treea4de7df834545e7b852bcafb13feba772233a638 /camera.c
parenta0730cadc4359e44303f13bc45056c9133ec8bd2 (diff)
clean up textures
Diffstat (limited to 'camera.c')
-rw-r--r--camera.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camera.c b/camera.c
index 095bb85..d1448d0 100644
--- a/camera.c
+++ b/camera.c
@@ -353,8 +353,9 @@ bool camera_next_frame(Camera *camera) {
return false;
}
}
-void camera_update_gl_texture_2d(Camera *camera) {
+void camera_update_gl_textures(Camera *camera, const GLuint textures[3]) {
int prev_align = 1;
+ gl.BindTexture(GL_TEXTURE_2D, textures[0]);
gl.GetIntegerv(GL_UNPACK_ALIGNMENT, &prev_align);
uint32_t frame_width = camera_frame_width(camera), frame_height = camera_frame_height(camera);
for (int align = 8; align >= 1; align >>= 1) {