mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 15:13:37 +02:00
Merge pull request #21119 from white-axe/libretro-vfs
Fix libretro builds for iOS and Windows
This commit is contained in:
+1
-1
@@ -1676,7 +1676,7 @@ if(ANDROID)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (IOS)
|
||||
if (IOS AND NOT LIBRETRO)
|
||||
set(nativeExtra ${nativeExtra} ${NativeAppSource})
|
||||
endif()
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
class LibretroD3D11Context : public LibretroHWRenderContext {
|
||||
public:
|
||||
LibretroD3D11Context() : LibretroHWRenderContext(RETRO_HW_CONTEXT_DIRECT3D, 11) {}
|
||||
LibretroD3D11Context() : LibretroHWRenderContext(RETRO_HW_CONTEXT_D3D11, 11) {}
|
||||
bool Init() override;
|
||||
|
||||
void SwapBuffers() override;
|
||||
|
||||
@@ -133,7 +133,7 @@ LibretroGraphicsContext *LibretroGraphicsContext::CreateGraphicsContext() {
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
if (preferred == RETRO_HW_CONTEXT_DUMMY || preferred == RETRO_HW_CONTEXT_DIRECT3D) {
|
||||
if (preferred == RETRO_HW_CONTEXT_DUMMY || preferred == RETRO_HW_CONTEXT_D3D11) {
|
||||
ctx = new LibretroD3D11Context();
|
||||
|
||||
if (ctx->Init()) {
|
||||
|
||||
+1
-1
Submodule libretro/libretro-common updated: 7c56a43b42...76a3d54feb
Reference in New Issue
Block a user