summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/src/rendering/backend/opengl.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/src/rendering/backend/opengl.rs b/engine/src/rendering/backend/opengl.rs
index 9485e68..8d7710a 100644
--- a/engine/src/rendering/backend/opengl.rs
+++ b/engine/src/rendering/backend/opengl.rs
@@ -1469,7 +1469,7 @@ fn create_gl_texture(
.size(image.dimensions().into())
.create_2d(
curr_gl_context,
- image.as_bytes(),
+ Some(image.as_bytes()),
create_pixel_data_format(ImageDataProperties {
color_type: image.color_type(),
is_srgb: image.color_space_is_srgb(),
@@ -1478,11 +1478,11 @@ fn create_gl_texture(
TextureCreationData::CubeMap { images, color_type, is_srgb, size } => {
GlTexture::builder().size(size.into()).create_cube_map(
curr_gl_context,
- std::array::from_fn::<_, 6, _>(|index| {
+ Some(std::array::from_fn::<_, 6, _>(|index| {
let (face, image) = &images[index];
(cube_map_texture_face_to_gl(*face), image.as_bytes())
- }),
+ })),
create_pixel_data_format(ImageDataProperties { color_type, is_srgb }),
)
}