Browse Source
Merge pull request #12713 from wannkunstbeikor/master
Fix OnOpenGlInit getting called twice
pull/12512/head
Nikita Tsukanov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
2 deletions
-
src/Avalonia.OpenGL/Controls/OpenGlControlBase.cs
|
|
|
@ -108,8 +108,6 @@ namespace Avalonia.OpenGL.Controls |
|
|
|
_visual.Size = new Vector(Bounds.Width, Bounds.Height); |
|
|
|
_visual.Surface = _resources.Surface; |
|
|
|
ElementComposition.SetElementChildVisual(this, _visual); |
|
|
|
using (_resources.Context.MakeCurrent()) |
|
|
|
OnOpenGlInit(_resources.Context.GlInterface); |
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|