comparison Framework/Scene2D/Internals/OpenGLAdvancedPolylineRenderer.h @ 947:1091b2adeb5a toa2019081001

Fixed animation frame stopping when returning false + big work on the OpenGL objects to make them lost context-safe + debug code to forcefully tag a context as lost + debug macros
author Benjamin Golinvaux <bgo@osimis.io>
date Sat, 10 Aug 2019 13:07:31 +0200
parents 6e888cf6a48b
children 2d8ab34c8c91
comparison
equal deleted inserted replaced
946:dbe3e1e47019 947:1091b2adeb5a
45 45
46 virtual void Render(const AffineTransform2D& transform, 46 virtual void Render(const AffineTransform2D& transform,
47 unsigned int canvasWidth, 47 unsigned int canvasWidth,
48 unsigned int canvasHeight) 48 unsigned int canvasHeight)
49 { 49 {
50 program_.Apply(*data_, transform, true, true); 50 if (!context_.IsContextLost())
51 {
52 program_.Apply(*data_, transform, true, true);
53 }
51 } 54 }
52 55
53 virtual void Update(const ISceneLayer& layer) 56 virtual void Update(const ISceneLayer& layer)
54 { 57 {
55 LoadLayer(dynamic_cast<const PolylineSceneLayer&>(layer)); 58 LoadLayer(dynamic_cast<const PolylineSceneLayer&>(layer));