[retro-gtk/wip/aplazas/gl-display-2] Add traces
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/wip/aplazas/gl-display-2] Add traces
- Date: Sat, 18 Nov 2017 12:04:53 +0000 (UTC)
commit f1f9c440bfe25b53e66df41d0c44f12b55cbb689
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat Nov 18 13:04:38 2017 +0100
Add traces
retro-gtk/retro-gl-display.c | 5 +++++
retro-gtk/retro-pixdata.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/retro-gtk/retro-gl-display.c b/retro-gtk/retro-gl-display.c
index 61cdd56..2f73b93 100644
--- a/retro-gtk/retro-gl-display.c
+++ b/retro-gtk/retro-gl-display.c
@@ -416,6 +416,11 @@ retro_gl_display_on_video_output (RetroCore *sender,
g_return_if_fail (RETRO_IS_GL_DISPLAY (self));
+ g_message ("video output pidxdata %p", pixdata);
+
+ if (pixdata == NULL)
+ return;
+
self->aspect_ratio = retro_pixdata_get_aspect_ratio (pixdata);
retro_gl_display_set_pixdata (self, pixdata);
}
diff --git a/retro-gtk/retro-pixdata.c b/retro-gtk/retro-pixdata.c
index 37d6367..2981054 100644
--- a/retro-gtk/retro-pixdata.c
+++ b/retro-gtk/retro-pixdata.c
@@ -385,7 +385,7 @@ retro_pixdata_load_gl_texture (RetroPixdata *self)
break;
case RETRO_PIXEL_FORMAT_RGB565:
g_message ("RGB565 stride %llux%llu stride %llu", self->width, self->height, self->rowstride);
- format = GL_BGR;
+ format = GL_RGB;
type = GL_UNSIGNED_SHORT_5_6_5;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]