Commit 447ad838 by Maxime Gregoire Committed by Maxime Grégoire

Possibility to call a non-existing display list without error

Change-Id: I13fba44145d378470f2090f7688a8dd68ae56452 Reviewed-on: https://swiftshader-review.googlesource.com/2773Tested-by: 's avatarMaxime Grégoire <mgregoire@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 0b65c5e3
......@@ -3362,7 +3362,7 @@ void Context::endList()
void Context::callList(GLuint list)
{
ASSERT(displayList[list]);
// As per GL specifications, if the list does not exist, it is ignored
if(displayList[list])
{
displayList[list]->call();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment