mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
GLDraw: Fixed for Win32
git-svn-id: svn://ultimatepp.org/upp/trunk@6363 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9fe1a304ee
commit
1b663ebc5f
1 changed files with 7 additions and 3 deletions
|
|
@ -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); // ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue