Free MjrContext in Renderer destructor. Fixes #1186.
PiperOrigin-RevId: 595125644 Change-Id: I5dadc3508ec296ba8844fed2a8f5d2de7e53221d
This commit is contained in:
committed by
Copybara-Service
parent
4c066a26b5
commit
1c7809e542
@@ -315,6 +315,9 @@ the clause:
|
|||||||
if self._gl_context:
|
if self._gl_context:
|
||||||
self._gl_context.free()
|
self._gl_context.free()
|
||||||
self._gl_context = None
|
self._gl_context = None
|
||||||
|
if self._mjr_context:
|
||||||
|
self._mjr_context.free()
|
||||||
|
self._mjr_context = None
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
return self
|
return self
|
||||||
|
|||||||
Reference in New Issue
Block a user