Skip to content

Commit

Permalink
use faster GL_STREAM_READ when reading textures
Browse files Browse the repository at this point in the history
  • Loading branch information
mrDIMAS committed Sep 1, 2024
1 parent 43f0f74 commit 69f588f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fyrox-impl/src/renderer/framework/pixel_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl<T> PixelBuffer<T> {
state.gl.buffer_data_size(
glow::PIXEL_PACK_BUFFER,
size_bytes as i32,
glow::STREAM_COPY,
glow::STREAM_READ,
);
Ok(Self {
id,
Expand Down

0 comments on commit 69f588f

Please sign in to comment.