AlternativaPlatform / Alternativa3D

Alternativa3D Flash GPU accelerated 3D engine
http://alternativaplatform.com/en/technologies/alternativa3d/
377 stars 126 forks source link

Why does BitmapTextureResource have to lose _texture? #43

Closed makc closed 11 years ago

makc commented 11 years ago

This is more like forum question, but - since it's down - here goes:

            } else {
                _texture = null;
                throw new Error("Cannot upload without data");
            }

Why does it have to do that? I could understand throw, but "= null" part is mysterious :confused:

makc commented 11 years ago

A ha, it is to avoid to disposing _texture again...