fix: CameraView

TWO lines (нет слов, одни эмоции бля)
This commit is contained in:
2026-04-13 18:36:53 +03:00
parent 66cd73d8ff
commit b7a095f84d
+2 -1
View File
@@ -164,7 +164,7 @@ public partial class CameraView : OpenGlControlBase
gl.BindVertexArray(VAO); ThrowIfOpenGLError(gl); gl.BindVertexArray(VAO); ThrowIfOpenGLError(gl);
gl.BindBuffer(GlConsts.GL_ARRAY_BUFFER, VAO); ThrowIfOpenGLError(gl); gl.BindBuffer(GlConsts.GL_ARRAY_BUFFER, VBO); ThrowIfOpenGLError(gl);
unsafe unsafe
{ {
fixed (float* pVertices = Vertices) fixed (float* pVertices = Vertices)
@@ -515,6 +515,7 @@ public partial class CameraView : OpenGlControlBase
var tileMode = TileMode; var tileMode = TileMode;
// 1. Очищаем экран // 1. Очищаем экран
gl.Disable(GlConsts.GL_SCISSOR_TEST);
gl.Viewport(0, 0, (int)Bounds.Width, (int)Bounds.Height); gl.Viewport(0, 0, (int)Bounds.Width, (int)Bounds.Height);
gl.ClearColor(0f, 0f, 0f, 0f); gl.ClearColor(0f, 0f, 0f, 0f);
gl.Clear(GlConsts.GL_COLOR_BUFFER_BIT); gl.Clear(GlConsts.GL_COLOR_BUFFER_BIT);