[retro-gtk] environment: Specify Direct3D is unsupported



commit bf849e2f0cde15bf6adf7ece63f375e1acbadfde
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Dec 17 19:31:31 2020 +0100

    environment: Specify Direct3D is unsupported
    
    Log a critical error when trying to use Direct3D, specifying support
    isn't planned.

 retro-runner/retro-environment.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/retro-runner/retro-environment.c b/retro-runner/retro-environment.c
index 2805d1e..4fd5270 100644
--- a/retro-runner/retro-environment.c
+++ b/retro-runner/retro-environment.c
@@ -338,6 +338,10 @@ set_hw_render (RetroCore             *self,
   case RETRO_HW_CONTEXT_VULKAN:
     g_critical ("Couldn't set hardware render callback: Vulkan support is unimplemented");
 
+    return FALSE;
+  case RETRO_HW_CONTEXT_DIRECT3D:
+    g_critical ("Couldn't set hardware render callback: Direct3D is unsupported");
+
     return FALSE;
   default:
     g_critical ("Couldn't set hardware render callback for unknown context type %d", callback->context_type);


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