Icefox's picture

glDrawElements() is subtly retarded

Project:Meshomatic
Version:0.2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Icefox
Status:fixed
Description

DisplayMesh Main.cs, line 122:
GL.DrawElements(BeginMode.Triangles, inds, DrawElementsType.UnsignedInt, 0);
should be:
GL.DrawElements(BeginMode.Triangles, inds, DrawElementsType.UnsignedInt, IntPtr.Zero);

This is fixed in the next release but I'd rather actually add new stuff before making another release, rather than a one-line fix.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Icefox's picture

#1

Status:open» postponed

I guess 'postponed' is the right status here?

the Fiddler's picture

#2

There's no reason to do that, the int version is just a shortcut to the IntPtr version. From GLHelper.cs, line 831:

        public static void DrawElements(BeginMode mode, int count, DrawElementsType type, int offset)
        {
            DrawElements(mode, count, type, new IntPtr(offset));
        }
Icefox's picture

#3

Status:postponed» fixed

Fixed in 0.3.0