[cogl] Don't allow calling cogl_set_source_texture with an INVALID_HANDLE
authorRobert Bragg <robert@linux.intel.com>
Mon, 8 Jun 2009 11:18:34 +0000 (12:18 +0100)
committerRobert Bragg <robert@linux.intel.com>
Thu, 11 Jun 2009 15:28:01 +0000 (16:28 +0100)
commit71b62e75d24eeee15c6522e6d67f6439fb1315c5
tree3c8262a9dcd090be9066d83567b2a723fb700523
parent96827db74089054763c596e28aa180bc0fb1b7c5
[cogl] Don't allow calling cogl_set_source_texture with an INVALID_HANDLE

Although the underlying materials should allow layers with INVALID_HANDLES
it shouldn't be necissary to expose that via cogl_set_source_texture() and
it's easier to resolve a warning/crash here than odd artefacts/crashes later
in the pipeline.
clutter/cogl/common/cogl-material.c