DiscussionsIssue archiveOCCT:Visualization

Archived issue #0031088

Visualization - GL_INVALID_ENUM while dumping view within OpenGL 1.1

Open CASCADEOCCT:Visualizationclosed2 public notes

Search issues

Description

Dumping view with a marker fails on OpenGL 1.1.

Note that bug in code has not been introduced by OCCT 7.4.0, so that the issue was accidentally covered up by some other place in 3D Viewer resetting OpenGL errors.

Steps to reproduce

pload VISUALIZATION
vcaps -softMode 1
vclear
vinit View1
vpoint p0 0 0 0
vdump ggg.png

Result:
Warning, on screen buffer is used for image dump - content might be invalid
TKOpenGl | Type: Other | ID: 0 | Severity: Low | Message:
  Unhandled GL error: GL_INVALID_ENUM
Fail: view dump failed!

Public activity

2 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Sun Oct 20 14:13:46 2019 +0300

    0031088: Visualization - GL_INVALID_ENUM while dumping view within OpenGL 1.1
    
    OpenGl_Sampler::resetGlobalTextureParams() - added missing version check before disabling GL_POINT_SPRITE.
02Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]