Bartosz Tomczyk <bartosz.tomczy...@gmail.com> writes: > You are right, it doesn't free old shader source. Should we also clear > old source if new source is NULL? Then I could unify both conditions.
shader_source() would free the old and put in the new. If calloc fails, you could throw GL_OUT_OF_MEMORY and return.
signature.asc
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev