Skip to content

Commit 2fbb9b4

Browse files
committed
opengl: offscreen use GL_PACK_ALIGNMENTas
Thanks to https://stackoverflow.com/revisions/14324292/36
1 parent f1501ef commit 2fbb9b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengl/offscreen.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ static void init(void) {
301301

302302
glClearColor(0.0, 0.0, 0.0, 0.0);
303303
glEnable(GL_DEPTH_TEST);
304-
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
304+
glPixelStorei(GL_PACK_ALIGNMENT, 1);
305305
glViewport(0, 0, width, height);
306306
glMatrixMode(GL_PROJECTION);
307307
glLoadIdentity();

0 commit comments

Comments
 (0)