Archived

This topic is now archived and is closed to further replies.

need help in masm, cant copy texure

This topic is 5049 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What me do? ... bind emptytexture invoke glGenTextures, 1, ADDR copytexture invoke glBindTexture, GL_TEXTURE_2D, copytexture invoke glTexImage2D, GL_TEXTURE_2D, 0, 4, 128, 128,\ 0, GL_RGBA, GL_UNSIGNED_BYTE, offset gener2 invoke glTexParameteri, GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR invoke glTexParameteri, GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ... gentex proc ; generate texure invoke glGenTextures, 1, ADDR copytexture invoke glEnable, GL_TEXTURE_2D invoke glBindTexture, GL_TEXTURE_2D, copytexture invoke glCopyTexImage2D, GL_TEXTURE_2D, 0, GL_RGBA, 0, 0, 128, 128, 1 ret gentex endp and i try draw quad with copied texture, but texture all white

Share this post


Link to post
Share on other sites