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.
This commit is contained in:
John Beard 2017-01-23 13:19:10 +08:00 committed by Maciej Suminski
parent 68b141dcb8
commit 0799d9e45c
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}