Talk:GLAPI/glDrawElements

From OpenGL Wiki
Revision as of 21:23, 17 November 2016 by St0ff (talk | contribs) (received another error than the ones listed from a glDrawElements call)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I have just encountered a situation where glDrawElements failed with a 0x0505 - OUT_OF_MEMORY. This is especially weird, as the GPU memory isn't even half filled and CPU Memory has more than enough free space available. A NSight session revealed the real problem: the bound element array is incomplete (generated, but no data/size set), thus the error message could be interpreted as "OUT_OF_MEMORY to read data from". I do not know if this is NVidia-specific, but anyhow this possible error message should also be noted/explained.