Permalink
Browse files

Libretro d3d11 build fix

  • Loading branch information...
twinaphex authored and webgeek1234 committed Oct 30, 2018
1 parent 157b4aa commit d66f1b03721312ec2f5d2eaaf0b24c5d50be9b54
Showing with 4 additions and 1 deletion.
  1. +4 −1 libretro/LibretroD3D11Context.cpp
@@ -1,4 +1,5 @@
#include "Core/ConfigValues.h"
#include "libretro/LibretroD3D11Context.h"
#include "thin3d/d3d11_loader.h"
#include <d3d11_1.h>
@@ -17,6 +18,8 @@ bool LibretroD3D11Context::Init() {
}
void LibretroD3D11Context::CreateDrawContext() {
std::vector<std::string> adapterNames;
if (!Libretro::environ_cb(RETRO_ENVIRONMENT_GET_HW_RENDER_INTERFACE, (void **)&d3d11_) || !d3d11_) {
ERROR_LOG(G3D, "Failed to get HW rendering interface!\n");
return;
@@ -35,7 +38,7 @@ void LibretroD3D11Context::CreateDrawContext() {
ID3D11DeviceContext1 *context1 = nullptr;
d3d11_->context->QueryInterface(__uuidof(ID3D11DeviceContext1), (void **)&context1);
draw_ = Draw::T3DCreateD3D11Context(d3d11_->device, d3d11_->context, device1, context1, d3d11_->featureLevel, NULL);
draw_ = Draw::T3DCreateD3D11Context(d3d11_->device, d3d11_->context, device1, context1, d3d11_->featureLevel, NULL, adapterNames);
}
void LibretroD3D11Context::DestroyDrawContext() {

0 comments on commit d66f1b0

Please sign in to comment.