[retro-gtk/wip/aplazas/gl-display-2] Test define texture row length



commit 02e4926f1f47b937292978242567f192bf78d639
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sat Nov 18 13:32:29 2017 +0100

    Test define texture row length

 retro-gtk/retro-pixdata.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/retro-gtk/retro-pixdata.c b/retro-gtk/retro-pixdata.c
index 2981054..e7e277d 100644
--- a/retro-gtk/retro-pixdata.c
+++ b/retro-gtk/retro-pixdata.c
@@ -393,6 +393,7 @@ retro_pixdata_load_gl_texture (RetroPixdata *self)
     return FALSE;
   }
 
+  glPixelStorei (GL_PACK_ROW_LENGTH, self->rowstride);
   glTexImage2D (GL_TEXTURE_2D,
                 0,
                 GL_RGB,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]