daily update on 20240828 by nitload youmu, autotexture added
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Logic;
|
||||
|
||||
using StgSharp.Math;
|
||||
|
||||
using System;
|
||||
@@ -45,9 +45,10 @@ namespace StgSharp.Graphics.OpenGL
|
||||
|
||||
public abstract partial class glRenderStream : RenderStream
|
||||
{
|
||||
private GlFunction _context;
|
||||
|
||||
internal protected GlFunction GL
|
||||
private OpenGLFunction _context;
|
||||
|
||||
protected internal OpenGLFunction GL
|
||||
{
|
||||
get { return _context; }
|
||||
}
|
||||
@@ -69,11 +70,11 @@ namespace StgSharp.Graphics.OpenGL
|
||||
}
|
||||
if (GL == null)
|
||||
{
|
||||
_context = GlFunction.BuildGlFunctionPackage(ContextHandle);
|
||||
_context = OpenGLFunction.BuildGlFunctionPackage(ContextHandle);
|
||||
}
|
||||
if (GlFunction.CurrentGL != GL)
|
||||
if (OpenGLFunction.CurrentGL != GL)
|
||||
{
|
||||
GlFunction.CurrentGL = GL;
|
||||
OpenGLFunction.CurrentGL = GL;
|
||||
InternalIO.glfwMakeContextCurrent(CanvasHandle);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user