SoSceneTextureCubeMap.cpp:699: read of bad data ?

Create issue
Issue #96 resolved
David Binderman created an issue

SoSceneTextureCubeMap.cpp:699:47: warning: '((void)& col +12)' is used uninitialized in this function [-Wuninitialized]

glClearColor(col[0], col[1], col[2], col[3]);

Comments (5)

  1. Roy Walmsley


    Thanks for your comment. I have reviewed the code and can see that the 'col' variable instanced on line 691 is initialized by the call to 'getBackgroundColor'. But then I look again and realise that SbColor is only a three component vector. There is no alpha. So col[3] is actually not valid. I will fix it.


  2. Log in to comment