Throw exception when VBO cannot allocate enough memory in VBO::map().

This commit is contained in:
vrld
2012-03-07 23:26:03 +01:00
parent 3f365857ee
commit 6dee041a9d
@@ -129,6 +129,8 @@ namespace opengl
throw love::Exception("VBO is already mapped!");
mapped = malloc(getSize());
if (!mapped)
throw love::Exception("Out of memory (oh the humanity!)");
return mapped;
}