SHARE
TWEET

Tastebin - Tkabber Plugin

a guest Dec 1st, 2011 4 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     // Это ок:
  2.     glBindTexture ( GL_TEXTURE_2D, texture[1] );
  3.     glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
  4.         glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
  5.     glTexImage2D ( GL_TEXTURE_2D, 0, temp->format->BytesPerPixel, temp->w,
  6.         temp->h, 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, temp->pixels );
  7.      // Это нет:  
  8.     glBindTexture ( GL_TEXTURE_2D, texture[2] );
  9.     glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
  10.         glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_NEAREST);
  11.     glTexImage2D ( GL_TEXTURE_2D, 0, temp->format->BytesPerPixel, temp->w,
  12.         temp->h, 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, temp->pixels );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top