Disable rendering of overlay items in software rendering (no shaders supported reported by OpenGL context)

p4#: 19222
This commit is contained in:
Magne Sjaastad 2012-10-19 08:35:04 +02:00
parent 32944e660c
commit 8957a92830

View File

@ -405,6 +405,12 @@ cvf::Part* RIViewer::pickPointAndFace(int winPosX, int winPosY, uint* faceHit, c
//--------------------------------------------------------------------------------------------------
void RIViewer::paintOverlayItems(QPainter* painter)
{
// No support for overlay items using SW rendering yet.
if (!isShadersSupported())
{
return;
}
int columnWidth = 200;
int margin = 5;
int yPos = margin;