There is a strange thing going on with custom widget rendering context size. This may be a mistake on my side and while easy to work around I think you should know. It looks like bottom part of it gets clipped out. Its especially easy to spot if a texture is rendered to fill the whole context.
This is how a context is retrieved right now.
Did I miss something obvious here?
This is how a context is retrieved right now.
Code:
CWnd *pWnd = frame.platformWidget();
CDC* dc = pWnd->GetDC();
//some setup - pixel format etc.
HGLRC mHglrc = wglCreateContext(dc->m_hDC);
wglMakeCurrent(dc->m_hDC, mHglrc);
Did I miss something obvious here?