mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 07:59:42 +00:00
Align MESA to alpha-2-resfix
Remove wrong resolution special handling for OPENGL
This commit is contained in:
parent
ee8d8b1689
commit
e0537c0548
@ -1,4 +1,4 @@
|
||||
# MESA PreBuilt Libraries
|
||||
|
||||
The Binaries in this folder are compiled from a custom version of [MESA](https://github.com/aerisarn/mesa-uwp).
|
||||
These are based on this [tag](https://github.com/aerisarn/mesa-uwp/releases/tag/alpha-2-hack).
|
||||
These are based on this [tag](https://github.com/aerisarn/mesa-uwp/releases/tag/alpha-2-resfix).
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -953,16 +953,9 @@ extern "C" {
|
||||
{
|
||||
if (is_running_on_xbox())
|
||||
{
|
||||
#ifdef HAVE_OPENGL
|
||||
//For whatever reason, this is not correct when initializing a Mesa GL context. Using the default method instead
|
||||
Windows::UI::Core::CoreWindow^ coreWindow = Windows::UI::Core::CoreWindow::GetForCurrentThread();
|
||||
DisplayInformation^ currentDisplayInformation = DisplayInformation::GetForCurrentView();
|
||||
ret = ConvertDipsToPixels(coreWindow->Bounds.Bottom - coreWindow->Bounds.Top, currentDisplayInformation->LogicalDpi);
|
||||
#else
|
||||
const Windows::Graphics::Display::Core::HdmiDisplayInformation^ hdi = Windows::Graphics::Display::Core::HdmiDisplayInformation::GetForCurrentView();
|
||||
if (hdi)
|
||||
ret = Windows::Graphics::Display::Core::HdmiDisplayInformation::GetForCurrentView()->GetCurrentDisplayMode()->ResolutionHeightInRawPixels;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (ret == -1)
|
||||
@ -998,16 +991,9 @@ extern "C" {
|
||||
{
|
||||
if (is_running_on_xbox())
|
||||
{
|
||||
#ifdef HAVE_OPENGL
|
||||
//For whatever reason, this is not correct when initializing a Mesa GL context. Using the default method instead
|
||||
Windows::UI::Core::CoreWindow^ coreWindow = Windows::UI::Core::CoreWindow::GetForCurrentThread();
|
||||
DisplayInformation^ currentDisplayInformation = DisplayInformation::GetForCurrentView();
|
||||
returnValue = ConvertDipsToPixels(coreWindow->Bounds.Right - coreWindow->Bounds.Left, currentDisplayInformation->LogicalDpi);
|
||||
#else
|
||||
const Windows::Graphics::Display::Core::HdmiDisplayInformation^ hdi = Windows::Graphics::Display::Core::HdmiDisplayInformation::GetForCurrentView();
|
||||
if (hdi)
|
||||
returnValue = Windows::Graphics::Display::Core::HdmiDisplayInformation::GetForCurrentView()->GetCurrentDisplayMode()->ResolutionWidthInRawPixels;
|
||||
#endif
|
||||
}
|
||||
|
||||
if(returnValue == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user