pyopengl icon indicating copy to clipboard operation
pyopengl copied to clipboard

[3.1.9][debian] return of SF#2829309 ?

Open picca opened this issue 8 months ago • 0 comments

Hello, this test fail on Debian unstable while preparing the new package

=================================== FAILURES ===================================
_______________________ TestCore.test_glCallLists_twice2 _______________________

self = <test_core.TestCore testMethod=test_glCallLists_twice2>

    def test_glCallLists_twice2( self ):
        """SF#2829309 report that glCallLists doubles operation"""
        glRenderMode (GL_RENDER)
        glMatrixMode(GL_PROJECTION)
        glLoadIdentity()
        gluPerspective(40.0, 1.0, 1.0, 10.0)
        glMatrixMode (GL_MODELVIEW)
        glLoadIdentity ()
        glTranslatef (0, 0, -3)
        first = glGenLists( 2 )
        second = first+1
    
        glNewList(first, GL_COMPILE_AND_EXECUTE)
        glInitNames ()
        if not OpenGL.ERROR_ON_COPY:
            glCallLists([second]) # replace with gCallList(2)
        else:
            lists = (GLuint * 1)()
            lists[0] = second
            glCallLists(lists)
        #glCallList(second)
        glEndList ()
    
        glNewList(second, GL_COMPILE)
        glPushName (1)
        glBegin (GL_POINTS)
        glVertex3f (0, 0, 0)
        glEnd ()
        glEndList ()
        glCallList( second )
        glPopName()
        depth = glGetIntegerv( GL_NAME_STACK_DEPTH )
        assert depth in (0,(0,)), depth # have popped, but even then, were' not in the mode...
    
        glSelectBuffer (100)
        glRenderMode (GL_SELECT)
        glCallList(1)
        depth = glGetIntegerv( GL_NAME_STACK_DEPTH )
>       assert depth in (1,(1,)), depth # should have a single record
E       AssertionError: 0
E       assert 0 in (1, (1,))

tests/test_core.py:521: AssertionError

I would like your help in order to solve this issue.

thanks

Frederic

picca avatar Mar 10 '25 17:03 picca