|
@@ -129,6 +129,8 @@ namespace opengl
|
|
throw love::Exception("VBO is already mapped!");
|
|
throw love::Exception("VBO is already mapped!");
|
|
|
|
|
|
mapped = malloc(getSize());
|
|
mapped = malloc(getSize());
|
|
|
|
+ if (!mapped)
|
|
|
|
+ throw love::Exception("Out of memory (oh the humanity!)");
|
|
|
|
|
|
return mapped;
|
|
return mapped;
|
|
}
|
|
}
|