Render to texture failing
How can I check if I need to make the texture POT? Any glGetIntegerv() I can check?
Another problem I've encountered is when I switch back to my normal rendering the depth buffer is no longer working.
I have this code
If I don't active the texture rendering then it renders fine, it's only when I go to texture rendering then back again that the depth buffer no longer works.
Looks like all I need is
And to restore the default depth buffer
Another problem I've encountered is when I switch back to my normal rendering the depth buffer is no longer working.
I have this code
Code:
if(m_textureRenderer->IsActive())
{
glBindFramebufferOES(GL_FRAMEBUFFER_OES, m_textureRenderer->GetFrameBuffer());
glBindRenderbufferOES(GL_RENDERBUFFER_OES, m_textureRenderer->GetDepthBuffer());
}
else
{
glBindFramebufferOES(GL_FRAMEBUFFER_OES, m_defaultFramebuffer);
glBindRenderbufferOES(GL_RENDERBUFFER_OES, m_depthRenderbuffer);
}If I don't active the texture rendering then it renders fine, it's only when I go to texture rendering then back again that the depth buffer no longer works.
Looks like all I need is
Code:
if(m_textureRenderer->IsActive())
glBindFramebufferOES(GL_FRAMEBUFFER_OES, m_textureRenderer->GetFrameBuffer());
else
glBindFramebufferOES(GL_FRAMEBUFFER_OES, m_defaultFramebuffer);And to restore the default depth buffer
Code:
glBindRenderbufferOES(GL_RENDERBUFFER_OES, m_depthRenderbuffer);
glFramebufferRenderbufferOES(GL_FRAMEBUFFER_OES, GL_DEPTH_ATTACHMENT_OES, GL_RENDERBUFFER_OES, m_depthRenderbuffer);| Messages In This Thread |
|
Render to texture failing - headkaze - Aug 31, 2010, 09:58 PM
RE: Render to texture failing - headkaze - Aug 31, 2010, 11:58 PM
RE: Render to texture failing - mariocaprino - Sep 1, 2010, 12:23 AM
RE: Render to texture failing - headkaze - Sep 1, 2010, 12:32 AM
RE: Render to texture failing - arekkusu - Sep 1, 2010, 01:15 AM
RE: Render to texture failing - headkaze - Sep 1, 2010 01:44 AM
RE: Render to texture failing - arekkusu - Sep 1, 2010, 08:23 PM
RE: Render to texture failing - headkaze - Sep 1, 2010, 09:47 PM
|
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| iPad,render to texture, low framerate | ldynasa | 0 | 2,196 |
Nov 13, 2010 12:34 AM Last Post: ldynasa |
|
| GameKit bluetooth failing on iPad? | Cirdan | 0 | 3,204 |
Sep 3, 2010 01:20 AM Last Post: Cirdan |
|
| Performance problems with render to texture method | mbw234 | 6 | 4,343 |
Jun 25, 2010 01:47 AM Last Post: Jamie W |
|
| Multi-touch failing | Sumaleth | 1 | 2,245 |
Feb 24, 2010 08:49 PM Last Post: Sumaleth |
|
| OpenAL alGenSources failing | captainfreedom | 1 | 3,111 |
May 26, 2009 07:45 AM Last Post: captainfreedom |
|

