From OpenGL Wiki
Jump to: navigation, 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.