GLDraw: Fixed for Win32

git-svn-id: svn://ultimatepp.org/upp/trunk@6363 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-09-17 09:08:36 +00:00
parent 9fe1a304ee
commit 1b663ebc5f

View file

@ -2,8 +2,12 @@
#define LLOG(x) LOG(x)
#ifndef GL_BGRA // Win32 missing these
#define GL_BGRA 0x80E1
#endif
namespace Upp {
struct ImageGLData {
// Image img;
GLuint texture_id;
@ -23,8 +27,8 @@ void ImageGLData::Init(const Image& img)
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
// glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
// glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
LLOG("Texture id created: " << texture_id);
// SysImageRealized(img); // ?