Skip to content

Commit

Permalink
Align MESA to alpha-2-resfix
Browse files Browse the repository at this point in the history
Remove wrong resolution special handling for OPENGL
  • Loading branch information
aerisarn authored and e.canepa committed May 13, 2024
1 parent 7a44fb9 commit 847ff94
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion pkg/msvc-uwp/RetroArch-msvcUWP/MESA/README.md
Original file line number Diff line number Diff line change
@@ -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 modified pkg/msvc-uwp/RetroArch-msvcUWP/MESA/x64/libEGL.dll
Binary file not shown.
Binary file modified pkg/msvc-uwp/RetroArch-msvcUWP/MESA/x64/libGLESv2.dll
Binary file not shown.
Binary file modified pkg/msvc-uwp/RetroArch-msvcUWP/MESA/x64/libgallium_wgl.dll
Binary file not shown.
Binary file modified pkg/msvc-uwp/RetroArch-msvcUWP/MESA/x64/libglapi.dll
Binary file not shown.
Binary file modified pkg/msvc-uwp/RetroArch-msvcUWP/MESA/x64/opengl32.dll
Binary file not shown.
14 changes: 0 additions & 14 deletions uwp/uwp_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 847ff94

Please sign in to comment.