Comment 1 for bug 1178470

Revision history for this message
tobs12 (hans1215) wrote :

With this I get the exception below:
-------------------------------------------------------
import sys,os

from pygl3display import *

GLCommon.initEnvironment((1680,1050),fullscreen=True)

import pygame
from pygame.locals import *

floor=loadImage('block1.png', wrapped=True)
spr=[ list( list() for x in range(80) ) for x in range(80) ]

for y in range(70):
    spr.append
    for x in reversed(range(70)):
        spr[y][x]=Sprite(image=floor)

while 1:
    for event in pygame.event.get():
        if event.type == pygame.KEYDOWN:
            if event.key== pygame.K_ESCAPE:
                sys.exit()
        if event.type == pygame.QUIT:
            sys.exit()

    for y in range(60):
        for x in range(60):
            spr[y][x].setPosition( ( -100+(x+y)*16, 500+(y-x)*8 ) )

    GLCommon.doTasks()

---------------------------------

Traceback (most recent call last):
  File "lots_sprites_error.py", line 37, in <module>
    GLCommon.doTasks()
  File "c:\Python27\lib\site-packages\pygl3display\glcommon.py", line 253, in doTasks
    shader.doTasks(layer=layer, target=target)
  File "c:\Python27\lib\site-packages\pygl3display\infrastructure.py", line 375, in doTasks
    client.doTasks(layer, target)
  File "c:\Python27\lib\site-packages\pygl3display\infrastructure.py", line 114, in doTasks
    vertexArrays.bind()
  File "c:\Python27\lib\site-packages\pygl3display\vertexarrays.py", line 388, in bind
    ctypes.byref(data, mn))
  File "latebind.pyx", line 44, in OpenGL_accelerate.latebind.Curry.__call__ (src\latebind.c:832)
  File "c:\Python27\lib\site-packages\OpenGL\GL\VERSION\GL_1_5.py", line 93, in glBufferSubData
    return baseOperation( target, offset, size, data )
  File "errorchecker.pyx", line 50, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src\errorchecker.c:854)
OpenGL.error.GLError: GLError(
 err = 1281,
 description = 'ung\xfcltiger Wert',
 baseOperation = glBufferSubData,
 cArguments = (
  GL_ARRAY_BUFFER,
  0,
  313604,
  <cparam 'P' (084E0020)>,
 )
)