Skip to content

Fix handling of OpenGL resources #1228

Open
@DanRStevens

Description

@DanRStevens

It was recently noted that we might not be handling OpenGL resources correctly, such as by freeing them after we are done using them.

In Image.cpp in generateFbo there is a call to glGenTextures where the variable holding the ID simply goes out of scope. It does pass the value to glBindTexture first, but I doubt it get's read back and handled anywhere else.

The only potential use of the code in question is from RendererOpenGL::drawImageToImage, which is currently unused by NAS2D and OPHD.


Relevant documentation:

Other related documentation:

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions