From 0799d9e45c71660af6cec014cf38774d74363c2c Mon Sep 17 00:00:00 2001 From: John Beard Date: Mon, 23 Jan 2017 13:19:10 +0800 Subject: [PATCH] OPENGL_GAL: Init currentTarget The currentTarget member of OPENGL_GAL is not initialised, but the currentManager member is. This commit uses SetTarget to initialise both target and manager to a consistent state at construction. --- common/gal/opengl/opengl_gal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index 5759aff17a..81941547a0 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -140,7 +140,7 @@ OPENGL_GAL::OPENGL_GAL( GAL_DISPLAY_OPTIONS& aDisplayOptions, wxWindow* aParent, gluTessProperty( tesselator, GLU_TESS_WINDING_RULE, GLU_TESS_WINDING_POSITIVE ); - currentManager = nonCachedManager; + SetTarget( TARGET_NONCACHED ); }