tring to fix some errors.

Crash still happens error on line 122 of GlTexSubImage2D. where
&picData[0] is used.