improve gl interface to be more accurate

This commit is contained in:
Lars Brubaker 2020-10-22 18:31:08 -07:00
parent 418e257f35
commit f0697d04da
3 changed files with 3 additions and 4 deletions

View file

@ -58,8 +58,8 @@ namespace MatterHackers.GCodeVisualizer
{
try
{
GL.GenBuffers(1, out vertexID);
GL.GenBuffers(1, out indexID);
vertexID = GL.GenBuffer();
indexID = GL.GenBuffer();
SetBufferData(ref indexData, ref colorData);
}
catch