mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2024-11-25 16:18:56 +08:00
Fixed screen matrix
This commit is contained in:
parent
bc2dfc73ce
commit
9a0303781f
|
@ -16,6 +16,8 @@ namespace Strawberry
|
|||
ScreenWidth = screenWidth;
|
||||
ScreenHeight = screenHeight;
|
||||
WindowScale = windowScale;
|
||||
|
||||
UpdateScreenMatrix();
|
||||
}
|
||||
|
||||
public void UpdateScreenMatrix()
|
||||
|
|
|
@ -146,16 +146,14 @@ namespace Strawberry.SDL2
|
|||
delete gamepads;
|
||||
delete shader;
|
||||
|
||||
ImGui.ImGuiImplOpenGL3.Shutdown();
|
||||
ImGui.ImGuiImplSDL2.Shutdown();
|
||||
ImGui.ImGui.DestroyContext();
|
||||
|
||||
GL.glDeleteProgram(glProgram);
|
||||
SDL.GL_DeleteContext(glContext);
|
||||
SDL.DestroyWindow(window);
|
||||
SDL.Quit();
|
||||
|
||||
#if EDITOR
|
||||
ImGui.ImGuiImplOpenGL3.Shutdown();
|
||||
ImGui.ImGuiImplSDL2.Shutdown();
|
||||
ImGui.ImGui.DestroyContext();
|
||||
#endif
|
||||
}
|
||||
|
||||
static void* SdlGetProcAddress(StringView string)
|
||||
|
@ -194,8 +192,8 @@ namespace Strawberry.SDL2
|
|||
|
||||
public override void GameRenderEnd()
|
||||
{
|
||||
GL.glFlush();
|
||||
GL.glUseProgram(0);
|
||||
GL.glFlush();
|
||||
}
|
||||
|
||||
public override void RenderEnd()
|
||||
|
|
Loading…
Reference in New Issue
Block a user