Align MESA to alpha-2-resfix

Remove wrong resolution special handling for OPENGL
This commit is contained in:
Edoardo Canepa 2024-03-09 09:02:43 +01:00 committed by LibretroAdmin
parent ee8d8b1689
commit e0537c0548
7 changed files with 1 additions and 15 deletions

View File

@ -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).

View File

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