Sign in to follow this  
FreJa

texture problem

Recommended Posts

Hey, Im trying to load a BMP texture with alpha blending, however, this i what i get: pic (sry for the crappy host, but my ftp isnt working atm :( ) the image is supposed to be straight, plus, part of the E on Game, appears on the beginning of the quad. This is what I'm doing to setup the texture:
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
glTexImage2D(GL_TEXTURE_2D, 0, 4, texture->width, texture->height, 0, GL_RGBA, GL_UNSIGNED_BYTE, texture->data);
Any ideas? Thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by PlayfulPuppy
Looks like you're specifying the bottom left and bottom right texture coordinates the wrong way around when you're creating the quad.


It only happens with some textures, and they're all created the same way... :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this