Fix rendering bug.

In CoreTexture2D constructor, call createTexture last after all other
fields have been initialized in order to prevent the createTexture
method from using any uninitialized values.

A NullPointerException was being thrown when the textureIdBuffer field
was not yet initialized, yet was attempted to be used by the
createTexture method.
Merge pull request #214 from 3xp0n3nt/batch-render-dev

Fix rendering bug.