Skip to content

Commit cdffdfa

Browse files
author
drops
committed
OpenGL MSAA
1 parent 81eced0 commit cdffdfa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Layers/xrRenderGL/glHW.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ void CHW::CreateDevice(SDL_Window* hWnd)
153153
void CHW::DestroyDevice()
154154
{
155155
CHK_GL(glDeleteFramebuffers(1, &pFB));
156-
pFB = 0;
156+
CHK_GL(glDeleteFramebuffers(1, &pResolveFB));
157+
pFB = GL_NONE;
158+
pResolveFB = GL_NONE;
157159

158160
const auto context = SDL_GL_GetCurrentContext();
159161
if (context == m_context)
@@ -171,7 +173,9 @@ void CHW::Reset()
171173
ZoneScoped;
172174

173175
CHK_GL(glDeleteFramebuffers(1, &pFB));
176+
CHK_GL(glDeleteFramebuffers(1, &pResolveFB));
174177
pFB = 0;
178+
pResolveFB = 0;
175179
UpdateViews();
176180

177181
UpdateVSync();

0 commit comments

Comments
 (0)