mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
RenderStateTextureBindings::setupTextures() ignores the return value of Texture::setupTexture(). When setup fails, the texture is deleted and left without a valid OpenGL id, but applyOpenGL() still calls Texture::bind(), where CVF_ASSERT on the id aborts the application. Skip bindings without a valid texture id and log a render error instead.