mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Fix two minor issues with D3D UI
This commit is contained in:
parent
5bd62c99a6
commit
9dd3e18ed4
@ -741,12 +741,14 @@ void NativeRender(GraphicsContext *graphicsContext) {
|
||||
ortho.setOrthoD3D(0.0f, xres, 0, yres, -1.0f, 1.0f);
|
||||
break;
|
||||
case GPUBackend::DIRECT3D9:
|
||||
case GPUBackend::DIRECT3D11:
|
||||
ortho.setOrthoD3D(0.0f, xres, yres, 0.0f, -1.0f, 1.0f);
|
||||
Matrix4x4 translation;
|
||||
translation.setTranslation(Vec3(-0.5f, -0.5f, 0.0f));
|
||||
ortho = translation * ortho;
|
||||
break;
|
||||
case GPUBackend::DIRECT3D11:
|
||||
ortho.setOrthoD3D(0.0f, xres, yres, 0.0f, -1.0f, 1.0f);
|
||||
break;
|
||||
case GPUBackend::OPENGL:
|
||||
ortho.setOrtho(0.0f, xres, yres, 0.0f, -1.0f, 1.0f);
|
||||
break;
|
||||
|
@ -436,6 +436,7 @@ RasterState *D3D11DrawContext::CreateRasterState(const RasterStateDesc &desc) {
|
||||
case CullMode::NONE: d3ddesc.CullMode = D3D11_CULL_NONE; break;
|
||||
}
|
||||
d3ddesc.FrontCounterClockwise = desc.frontFace == Facing::CCW;
|
||||
d3ddesc.ScissorEnable = true; // We always run with scissor enabled
|
||||
if (SUCCEEDED(device_->CreateRasterizerState(&d3ddesc, &rs->rs)))
|
||||
return rs;
|
||||
delete rs;
|
||||
|
Loading…
Reference in New Issue
Block a user