fix DS being shown upside down when ScreenControlNDS is used

fixes 78f5e75534
This commit is contained in:
CasualPokePlayer 2023-07-28 14:54:02 -07:00
parent f7448495b0
commit 7a2f1532bf
2 changed files with 3 additions and 2 deletions

View File

@ -482,7 +482,7 @@ namespace BizHawk.Bizware.Graphics
{
// create a texture for it
var texId = GenTexture();
var tex = new Texture2d(this, texId, w, h) { IsUpsideDown = true }; // TODO: The IsUpsideDown doesn't ever get used here it seems
var tex = new Texture2d(this, texId, w, h);
GL.BindTexture(TextureTarget.Texture2D, texId);
GL.TexImage2D(TextureTarget.Texture2D, 0, InternalFormat.Rgba8, (uint)w, (uint)h, 0, PixelFormat.Bgra, PixelType.UnsignedByte, IntPtr.Zero.ToPointer());

View File

@ -3838,7 +3838,8 @@ namespace BizHawk.Client.EmuHawk
//path = ioa_openrom.Path;
}
DisplayManager.ActivateOpenGLContext(); // required in case the core wants to created a shared OpenGL context
DisplayManager.ActivateOpenGLContext(); // required in case the core wants to create a shared OpenGL context
var result = loader.LoadRom(path, nextComm, ioaRetro?.CorePath, forcedCoreName: MovieSession.QueuedCoreName);
if (result) Game = loader.Game;