Swapped width and height arguments in call to InitBitmapData in GenerateTexture. Fixed rendering errors when using non-square textures.