zturtleman / mm3d

Maverick Model 3D is a 3D model editor and animator for games.
https://clover.moe/mm3d
GNU General Public License v2.0
116 stars 24 forks source link

~TextureWidget corrupts the focused view area's overlay buttons. #59

Open m-7761 opened 5 years ago

m-7761 commented 5 years ago

~TextureWidget needs to select the appropriate OpenGL context before it deletes its textures.

EDITED: I actually don't think this is an accurate description since ~TextureWidget seems to set the context. See follow-up post.

m-7761 commented 5 years ago

Maybe it's not ~TextureWidget. It calls makeCurrent:

    if(isValid())
    {
        makeCurrent();
        glDeleteTextures(1,&m_glTexture);
        // Do NOT free m_texture.  TextureManager does that.

        glDeleteTextures(2,m_scrollTextures);
    }

Or maybe this bug is fixed but not in the current release.

zturtleman commented 5 years ago

No fix was committed for this since last release (Maverick 1.3.11).

m-7761 commented 5 years ago

I'm curious to know what the problem is. I don't think it will affect my rewritten code. But I can't see where it's coming from either.