mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 15:59:18 +02:00
reformat: use auto on certain types
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
void gl::pbo::request_read(int x, int y, int lx, int ly, int pixsize, GLenum format, GLenum type)
|
||||
{
|
||||
int s = lx * ly * pixsize;
|
||||
const int s = lx * ly * pixsize;
|
||||
if (s != size)
|
||||
allocate(PIXEL_PACK_BUFFER, s, GL_STREAM_DRAW);
|
||||
size = s;
|
||||
@@ -25,7 +25,7 @@ bool gl::pbo::read_data(int lx, int ly, void *data, int pixsize)
|
||||
if (!data_ready)
|
||||
return false;
|
||||
|
||||
int s = lx * ly * pixsize;
|
||||
const int s = lx * ly * pixsize;
|
||||
if (s != size)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user