Commit 2d810a89 authored by Berthold Krevert's avatar Berthold Krevert Committed by Pasi Keränen
Browse files

Don't crash if CanvasUniformLocation is 0


CanvasContext::getUniformLocation returns 0, if the
shader program does not declare the requested uniform
(as defined in the WebGL spec). That does mean, we have to
check for 0 in the uniform* functions to avoid crashes.

This is already done for most of the uniform* functions. This
commit introduces the remaining checks.

Change-Id: If123b5026e9a878913621c0bbba81bf77e5a433f
Reviewed-by: default avatarTomi Korpipää <tomi.korpipaa@digia.com>
Reviewed-by: default avatarPasi Keränen <pasi.keranen@digia.com>
Showing with 24 additions and 0 deletions
Supports Markdown
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