Skip to content

Commit ef985ca

Browse files
committed
opengl: offscreen use GL_PACK_ALIGNMENTas
Thanks to https://stackoverflow.com/revisions/14324292/36
1 parent 4fe1fee commit ef985ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎opengl/offscreen.c‎

Lines changed: 1 addition & 1 deletion
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)