[retro-gtk] environment: Support the 'none' HW rendering context
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] environment: Support the 'none' HW rendering context
- Date: Sun, 1 Aug 2021 08:56:31 +0000 (UTC)
commit 628797f61c4ab1f946260fe9f35fcd3ed17ea094
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Aug 1 11:39:08 2021 +0200
environment: Support the 'none' HW rendering context
This supports explicit software rendering requests.
retro-runner/retro-environment.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/retro-runner/retro-environment.c b/retro-runner/retro-environment.c
index c6857c6..9a78b76 100644
--- a/retro-runner/retro-environment.c
+++ b/retro-runner/retro-environment.c
@@ -496,6 +496,11 @@ set_hw_render (RetroCore *self,
g_clear_object (&self->renderer);
switch (callback->context_type) {
+ case RETRO_HW_CONTEXT_NONE:
+ retro_debug ("Set hardware render callback: none, use software rendering");
+
+ return TRUE;
+
case RETRO_HW_CONTEXT_OPENGL:
case RETRO_HW_CONTEXT_OPENGL_CORE:
case RETRO_HW_CONTEXT_OPENGLES2:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]