0

When I try to draw a scene using GL.DrawArrays() the code runs successfully, but crashes when I use GL.DrawElements().

The input paramaters and data is valid.

Bergi
  • 630,263
  • 148
  • 957
  • 1,375
kaps
  • 186
  • 4
  • 18
  • 2
    What is "crash"? Do you use debugger? Error checking? Any messages? – Ivan Aksamentov - Drop Aug 29 '13 at 10:29
  • Do you provide some kind of index list via an element array buffer? – Nicol Bolas Aug 29 '13 at 10:37
  • Sounds like a pinning issue; you may need to tell the .NET GC not to move the managed memory being used with those functions. – Mr. Smith Aug 29 '13 at 10:52
  • 1
    I'd start with dropping "The input paramaters and data is valid." assumption. If it is valid and driver isn't screwed up - which is very very likely because everyone using this function, it just can't be bugged - this surely would work just fine. – keltar Aug 29 '13 at 11:21
  • This error almost always means that you're reading far outside the bounds of one of your buffers. Your input parameters and/or data is not valid. Post some actual code so that we can see what's going wrong where. – Robert Rouhani Sep 18 '13 at 19:37

0 Answers0