Libretro d3d11 build fix

This commit is contained in:
twinaphex 2018-10-29 21:54:42 -05:00 committed by Aaron Kling
parent 157b4aa7bf
commit d66f1b0372

View File

@ -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() {