mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
use faster GL_STREAM_READ when reading textures
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user