Fix OpenSubdiv driver crash due to recently added uninitialized field.
authorAlexander Gavrilov <angavrilov@gmail.com>
Sat, 20 Aug 2016 10:48:29 +0000 (13:48 +0300)
committerAlexander Gavrilov <angavrilov@gmail.com>
Sat, 20 Aug 2016 10:48:29 +0000 (13:48 +0300)
For some reason my NVidia linux driver crashes in
glDeleteTextures when the ID is total garbage.

intern/opensubdiv/opensubdiv_gpu_capi.cc

index 0cf6fcfef433732744c4d8a3a71b2d25f79324e8..05bd3728f936cd91c1212f425eabb7e8f30a37d3 100644 (file)
@@ -115,7 +115,7 @@ static Transform g_transform;
 struct OpenSubdiv_GLMeshFVarData
 {
        OpenSubdiv_GLMeshFVarData() :
-               texture_buffer(0) {
+               texture_buffer(0), offset_buffer(0) {
        }
 
        ~OpenSubdiv_GLMeshFVarData()