mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Throw exception when VBO cannot allocate enough memory in VBO::map().
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user