fixes for running on linux
This commit is contained in:
@@ -103,13 +103,17 @@ namespace OpenRa.GlRenderer
|
||||
Glfw.glfwGetWindowSize(out width, out height);
|
||||
windowSize = new Size( width, height );
|
||||
|
||||
cgContext = Cg.cgCreateContext();
|
||||
cgContext = Cg.cgCreateContext();
|
||||
|
||||
Cg.cgSetErrorCallback( CgErrorCallback );
|
||||
|
||||
CgGl.cgGLRegisterStates( cgContext );
|
||||
CgGl.cgGLSetManageTextureParameters( cgContext, true );
|
||||
vertexProfile = CgGl.cgGLGetLatestProfile( CgGl.CG_GL_VERTEX );
|
||||
fragmentProfile = CgGl.cgGLGetLatestProfile( CgGl.CG_GL_FRAGMENT );
|
||||
fragmentProfile = CgGl.cgGLGetLatestProfile( CgGl.CG_GL_FRAGMENT );
|
||||
|
||||
Console.WriteLine("VP Profile: " + vertexProfile);
|
||||
Console.WriteLine("FP Profile: " + fragmentProfile);
|
||||
|
||||
Gl.glEnableClientState( Gl.GL_VERTEX_ARRAY );
|
||||
CheckGlError();
|
||||
|
||||
Reference in New Issue
Block a user