summaryrefslogtreecommitdiff
path: root/src/texture.c
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-05-22 15:19:55 -0500
committersanine-a <sanine.not@pm.me>2020-05-22 15:19:55 -0500
commite02ac3c921d816945324f1a887a0ed1db12f342e (patch)
tree125ce51b1038b786810a1fcb7cf7f536369350ae /src/texture.c
parent5379b4214696e64902c5e10b3d4ef3d503fddcc4 (diff)
create basic honey_camera
Diffstat (limited to 'src/texture.c')
-rw-r--r--src/texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/texture.c b/src/texture.c
index c1a5843..dfdbdd2 100644
--- a/src/texture.c
+++ b/src/texture.c
@@ -20,7 +20,7 @@ enum honey_texture_result honey_texture_new(honey_texture* texture,
}
if (alpha_channel) {
- glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, image_data);
+ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, image_data);
}
else {
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, image_data);