diff options
author | sanine-a <sanine.not@pm.me> | 2020-05-22 15:19:55 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-05-22 15:19:55 -0500 |
commit | e02ac3c921d816945324f1a887a0ed1db12f342e (patch) | |
tree | 125ce51b1038b786810a1fcb7cf7f536369350ae /src/texture.c | |
parent | 5379b4214696e64902c5e10b3d4ef3d503fddcc4 (diff) |
create basic honey_camera
Diffstat (limited to 'src/texture.c')
-rw-r--r-- | src/texture.c | 2 |
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); |