Patent ID: 8711166

Claim:
A computer-implemented method for binding textures and generating an image of an object using a graphics library including functions and elements, the method comprising: generating a variable to track a number of non power of two textures comprising a length dimension or a width dimension which is not a power of two, the non power of two textures being set to use mips; tracking the use of a first function; setting a value for the variable based on the use of the first function; receiving a request from a user to use a second function to bind one or more textures to the object and draw the object; when the value indicates that there are non power of two textures set to use mips, then: (a) identifying a plurality of textures including the one or more textures; (b) for each texture of the plurality of textures, determining, by one or more processors, whether the texture is an non power of two texture; (c) for each non power of two texture, determining whether the texture is set to use mips; (d) for each of the one or more textures which is an non power of two texture and set to use mips, binding a black texture to the object; (e) drawing the object in black; (f) calling the second function; and (g) after drawing the object in black, binding the one or more textures to the object.