main: unreference ATIFragmentShader program before creating new one
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Thu, 25 Jul 2019 15:15:24 +0000 (18:15 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 26 Jul 2019 12:51:05 +0000 (12:51 +0000)
commit02ecf16a70bb32eaf8540c4625c568bd193020e4
tree81b2f8c4cf90f0585245a56111040a4c844a20d5
parentfad848094fc5f3a16e1de3885f185e1df8b1e70b
main: unreference ATIFragmentShader program before creating new one

Old program was overwritten without release of memory.

Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/main/atifragshader.c