OSDN Git Service

glsl: Make sure shader source isn't NULL.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 7 Sep 2010 23:25:53 +0000 (16:25 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 7 Sep 2010 23:25:53 +0000 (16:25 -0700)
commita09a8ec12d76e1fb1583fa99cf9f48246c108d7b
treebad76f6269429f26abca6974f44a8ec1f7bc5282
parent1e28dd4ebe73f85cdc38a6bdaeef23fd10223cf3
glsl: Make sure shader source isn't NULL.

This should only occur if glCompileShader is called without a prior call
to glShaderSource.  An empty source program should be the empty string.
src/mesa/program/ir_to_mesa.cpp