Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Это ок:
- glBindTexture ( GL_TEXTURE_2D, texture[1] );
- 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, temp->format->BytesPerPixel, temp->w,
- temp->h, 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, temp->pixels );
- // Это нет:
- glBindTexture ( GL_TEXTURE_2D, texture[2] );
- glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
- glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_NEAREST);
- glTexImage2D ( GL_TEXTURE_2D, 0, temp->format->BytesPerPixel, temp->w,
- temp->h, 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, temp->pixels );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement