mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 03:25:14 -04:00
fix opengl build
This commit is contained in:
parent
5a6747084b
commit
aff169862f
@ -30,7 +30,7 @@ namespace ClassicalSharp {
|
||||
#if ANDROID
|
||||
Graphics = new OpenGLESApi();
|
||||
#elif !USE_DX
|
||||
Graphics = new OpenGLApi();
|
||||
Graphics = new OpenGLApi(window.WindowInfo);
|
||||
#else
|
||||
Graphics = new Direct3D9Api(this);
|
||||
#endif
|
||||
|
@ -252,9 +252,7 @@ namespace ClassicalSharp {
|
||||
Gui.OnResize();
|
||||
}
|
||||
|
||||
void OnClosed(object sender, EventArgs e) {
|
||||
Dispose();
|
||||
}
|
||||
void OnClosed(object sender, EventArgs e) { isExiting = true; }
|
||||
|
||||
void OnNewMapCore(object sender, EventArgs e) {
|
||||
for (int i = 0; i < Components.Count; i++)
|
||||
|
@ -594,7 +594,7 @@ namespace ClassicalSharp.GraphicsAPI {
|
||||
|
||||
public override void OnWindowResize(Game game) {
|
||||
GL.Viewport(0, 0, game.Width, game.Height);
|
||||
glContext.Update(game.window);
|
||||
glContext.Update(game.window.WindowInfo);
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user