mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
3D info is now using a different rendereing method more compatible with software rendering
p4#: 20669
This commit is contained in:
@@ -62,11 +62,12 @@ RIViewer::RIViewer(const QGLFormat& format, QWidget* parent)
|
||||
axisCross->setAxisLabels("E", "N", "Z");
|
||||
m_mainRendering->addOverlayItem(axisCross, cvf::OverlayItem::BOTTOM_LEFT, cvf::OverlayItem::VERTICAL);
|
||||
|
||||
setReleaseOGLResourcesEachFrame(true);
|
||||
this->enableOverlyPainting(true);
|
||||
this->setReleaseOGLResourcesEachFrame(true);
|
||||
|
||||
QColor c;
|
||||
QPalette p = QApplication::palette();
|
||||
QColor frameAndTextColor(255, 255, 255, 200);
|
||||
QColor frameAndTextColor(255, 255, 255, 255);
|
||||
p.setColor(QPalette::Window, QColor(144, 173, 208, 180));
|
||||
p.setColor(QPalette::WindowText, frameAndTextColor);
|
||||
|
||||
@@ -427,10 +428,10 @@ 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;
|
||||
}
|
||||
//if (!isShadersSupported())
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
|
||||
int columnWidth = 200;
|
||||
int margin = 5;
|
||||
|
||||
@@ -95,6 +95,7 @@ private:
|
||||
cvf::ref<cvf::OverlayScalarMapperLegend> m_legend1;
|
||||
cvf::ref<cvf::OverlayScalarMapperLegend> m_legend2;
|
||||
|
||||
|
||||
caf::PdmPointer<RimReservoirView> m_reservoirView;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user