- igorsegalla
- Posts: 9
- Joined:
Re: Using an existent device (OpenGL)
glPushAttrib( GL_ALL_ATTRIB_BITS ) doesnt works?
Re: Using an existent device (OpenGL)
I don't know, we are not using it. If you want to use it instead of restoring manually each state, then you need to figure it out why it is not working, that is a specific GL question. But, we don't recommend using those kind of functions for saving or restoring the state because they are slow or at least they are not fast or supported in all our platforms.
- igorsegalla
- Posts: 9
- Joined:
Re: Using an existent device (OpenGL)
I see, ll try figured out why this is happening, thanks for your time. When I debug game with NoesisGUI render at RenderDoc, looks missing the "Colour Pass #1 (1 Targets + Depth), dno why.
- igorsegalla
- Posts: 9
- Joined:
Re: Using an existent device (OpenGL)
Solved!! Thanks for your time.
I had to store render state and restore it.
I had to store render state and restore it.
- igorsegalla
- Posts: 9
- Joined:
Re: Using an existent device (OpenGL)
There's any problem to call UpdateRenderTree and RenderOffscreen before view->Render()?
This way I just need to save render state once time.
This way I just need to save render state once time.
Re: Using an existent device (OpenGL)
RenderOffscreen may change the active framebuffer and viewport, you should restore it after calling that function. This is the main reason it is recommended to call that function before binding your main framebuffer. Binding and unbinding the same render target several times in the same frame is not very efficient.
Re: Using an existent device (OpenGL)
Can I ask, how did you achieve this? I mean, what was the code you used to store the render state and restore it?Solved!! Thanks for your time.
I had to store render state and restore it.
Who is online
Users browsing this forum: Google [Bot] and 33 guests