fix crash when dumping OpenGL dummy shapes

CTRL + F12 is working now partly for the OpenGL shapes

Change-Id: Ia4d0499d0df683202d9e2f56de96b22abcd9e367