forked from amkovkov/GranuSightSoftware2
fix: CameraView
TWO lines (нет слов, одни эмоции бля)
This commit is contained in:
@@ -164,7 +164,7 @@ public partial class CameraView : OpenGlControlBase
|
||||
|
||||
gl.BindVertexArray(VAO); ThrowIfOpenGLError(gl);
|
||||
|
||||
gl.BindBuffer(GlConsts.GL_ARRAY_BUFFER, VAO); ThrowIfOpenGLError(gl);
|
||||
gl.BindBuffer(GlConsts.GL_ARRAY_BUFFER, VBO); ThrowIfOpenGLError(gl);
|
||||
unsafe
|
||||
{
|
||||
fixed (float* pVertices = Vertices)
|
||||
@@ -515,6 +515,7 @@ public partial class CameraView : OpenGlControlBase
|
||||
var tileMode = TileMode;
|
||||
|
||||
// 1. Очищаем экран
|
||||
gl.Disable(GlConsts.GL_SCISSOR_TEST);
|
||||
gl.Viewport(0, 0, (int)Bounds.Width, (int)Bounds.Height);
|
||||
gl.ClearColor(0f, 0f, 0f, 0f);
|
||||
gl.Clear(GlConsts.GL_COLOR_BUFFER_BIT);
|
||||
|
||||
Reference in New Issue
Block a user