diff --git a/uppsrc/GLDraw/GLDraw.cpp b/uppsrc/GLDraw/GLDraw.cpp index 31824e1e1..45e5276b7 100644 --- a/uppsrc/GLDraw/GLDraw.cpp +++ b/uppsrc/GLDraw/GLDraw.cpp @@ -145,7 +145,7 @@ void GLDraw::PutRect(const Rect& r, Color color) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); } -void GLDraw::InitGL(Size sz, uint64 context_) +void GLDraw::Init(Size sz, uint64 context_) { context = context_; diff --git a/uppsrc/GLDraw/GLDraw.h b/uppsrc/GLDraw/GLDraw.h index 99c14482d..bd016e47a 100644 --- a/uppsrc/GLDraw/GLDraw.h +++ b/uppsrc/GLDraw/GLDraw.h @@ -6,7 +6,7 @@ namespace Upp { -class GLDraw : SDraw { +class GLDraw : public SDraw { void SetColor(Color c); uint64 context; @@ -15,7 +15,7 @@ public: virtual void PutImage(Point p, const Image& m, const Rect& src); virtual void PutRect(const Rect& r, Color color); - void InitGL(Size sz, uint64 context = 0); + void Init(Size sz, uint64 context = 0); static void ClearCache(); static void ResetCache();