head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.8 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.6 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.4 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.2 pkgsrc-2025Q2-base:1.1; locks; strict; comment @# @; 1.1 date 2025.05.16.14.47.23; author adam; state Exp; branches; next ; commitid qn9rLkqBkLc1Q8VF; desc @@ 1.1 log @py-OpenGL-accelerate: fix for Cython 3.1 @ text @$NetBSD$ Fix for Cython 3.1. --- src/vbo.pyx.orig 2025-05-16 14:44:59.989869473 +0000 +++ src/vbo.pyx @@@@ -188,7 +188,7 @@@@ cdef class VBO: assert not self.created, """Already created the buffer""" buffers = self.get_implementation().glGenBuffers(1) try: - self.buffer = long( buffers ) + self.buffer = int( buffers ) except (TypeError,ValueError) as err: self.buffer = buffers[0] self.target = self.c_resolve( self.target_spec ) @@@@ -242,7 +242,7 @@@@ cdef class VBO: """Add an integer to this VBO (offset)""" if hasattr( other, 'offset' ): other = other.offset - assert isinstance( other, (int,long) ), """Only know how to add integer/long offsets""" + assert isinstance( other, int ), """Only know how to add integer/long offsets""" return VBOOffset( self, other ) cdef int check_live( self ): if self.data is _NULL: @