mono / opentk

OpenTK is a set of bindings to OpenGL, OpenCL and OpenAL. This is not the main repository, just a temporary import to allow Mono developers to make changes to this module. Please do not contribute changes here, contribute them to the upstream maintainers at http://www.opentk.com
http://www.opentk.com
115 stars 66 forks source link

Potential stack overflow? #17

Open UnknownShadow200 opened 7 years ago

UnknownShadow200 commented 7 years ago

From discussion at https://github.com/opentk/opentk/issues/535 I noticed this:

        public static void DrawElements(BeginMode mode, int count, DrawElementsType type, int offset)
        {
            DrawElements(mode, count, type, offset);
        }

which would seem to cause a stack overflow

The other two classes with this DrawElements overload (here and here) both used new IntPtr(offset) instead.