[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/libs/kgllib/extras/kgllib
From: Rivo Laks <rivolaks () hot ! ee>
Date: 2008-04-02 20:23:06
Message-ID: 1207167786.668932.26114.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 793004 by rivol:
Set color texture's wrap mode to GL_CLAMP
M +5 -1 rendertarget.cpp
--- trunk/playground/libs/kgllib/extras/kgllib/rendertarget.cpp #793003:793004
@@ -124,7 +124,11 @@
{
mOwnColorTexture = true;
// TODO: what if NPOT textures aren't supported?
- return new Texture(w, h, textureFormat);
+ Texture* tex = new Texture(w, h, textureFormat);
+ tex->bind();
+ tex->setWrapMode(GL_CLAMP);
+ tex->unbind();
+ return tex;
}
Texture* RenderTarget::createDepthTexture(int w, int h)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic