baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
8.94k stars 1.34k forks source link

Some textures (GL_INTENSITY_EXT format) not captured properly #2057

Closed OndrejSpanel closed 4 years ago

OndrejSpanel commented 4 years ago

Description

I use RenderDoc to debug rendering of a Java GUI toolkit. Everything works fine, the only issue is the font textures are broken when captured, their content is garbled and instead of containing the font data only some nonsense is there. When checking the texture in the resource inspector I can see the texture initialization data as captured is not good. Following fields do not seem to match well together - the SubresourceContents does not match width and height:

Internal: Initial Contents                              
  id                         Texture 120                
  Type                       Texture                    
  TextureState               TextureStateInitialData()  
    internalformat           GL_INTENSITY_EXT           
    isView                   False                      
    width                    256                        
    height                   256                        
    depth                    1                          
    samples                  0                          
    dim                      2                          
    type                     GL_TEXTURE_2D              
    mips                     1                          
    baseLevel                0                          
    maxAniso                 1.00                       
  SubresourceContents        (1 bytes)

It is very likely by the texture being of format GL_INTENSITY. When I have changed the font renderer to use GL_RED instead, the issue disappeared.

Steps to reproduce

I have attached the capture demonstrating the issue. The problematic texture is 120.

gl-swing.zip

Environment

The application is a Java application using JOGL. I use RenderDoc a lot to debug OpenGL Java applications and it has always worked fine for me - well done. This is the first situation I am experiencing any issues.

baldurk commented 4 years ago

RenderDoc does not support deprecated OpenGL features, it only supports the OpenGL core profile. GL_INTENSITY is deprecated functionality and was removed from the core profile.

i-make-robots commented 1 year ago

@OndrejSpanel can you share your method for attaching renderdoc to a jogl program? I'm using jogamp and this is my first try with renderdoc. It's asking for an exe and I've only got my jar file...

baldurk commented 1 year ago

Please do not comment on old issues that have been closed.

If you are encountering a bug or are requesting a feature please open a new issue. You can reference this issue if you wish, but opening a new issue prevents any confusion of accidentally linking two unrelated issues and means that each issue can be handled in a clean process.