Closed GoogleCodeExporter closed 9 years ago
reassigned: lucio
Original comment by ricardoq...@gmail.com
on 16 Jun 2008 at 6:17
In some cases this produces larger problems, like this:
1. create the simplest cocos app you can, director.run(Scene())
2. set it to fullscreen (CTRL+F)
3. pause it (CTRL+P)
if your resolution is large enough (compared to the default 640x480 window, it
tries
to blit a screenshot into a small texture:
Traceback (most recent call last):
File "main.py", line 16, in <module>
main()
File "main.py", line 14, in main
director.run (EscenaMenu())
File "/home/dmoisset/src/los-cocos/trunk/cocos/director.py", line 287, in run
event_loop.run()
File "/home/dmoisset/src/3rdparty/pyglet-1.1/pyglet/app/xlib.py", line 83, in run
window.dispatch_platform_event(e)
File "/home/dmoisset/src/3rdparty/pyglet-1.1/pyglet/window/xlib/__init__.py", line
1167, in dispatch_platform_event
event_handler(e)
File "/home/dmoisset/src/3rdparty/pyglet-1.1/pyglet/window/xlib/__init__.py", line
1321, in _event_key
self.dispatch_event('on_key_press', symbol, modifiers)
File "/home/dmoisset/src/3rdparty/pyglet-1.1/pyglet/window/__init__.py", line 1216,
in dispatch_event
EventDispatcher.dispatch_event(self, *args)
File "/home/dmoisset/src/3rdparty/pyglet-1.1/pyglet/event.py", line 340, in
dispatch_event
if handler(*args):
File "/home/dmoisset/src/los-cocos/trunk/cocos/director.py", line 162, in on_key_press
pause_sc = pause.get_pause_scene()
File "/home/dmoisset/src/los-cocos/trunk/cocos/scenes/pause.py", line 48, in
get_pause_scene
return __pause_scene_generator__()
File "/home/dmoisset/src/los-cocos/trunk/cocos/scenes/pause.py", line 59, in
default_pause_scene
texture.blit_into(pyglet.image.get_buffer_manager().get_color_buffer(), 0,0,0)
File "/home/dmoisset/src/3rdparty/pyglet-1.1/pyglet/image/__init__.py", line 1598,
in blit_into
source.blit_to_texture(self.target, self.level, x, y, z)
File "/home/dmoisset/src/3rdparty/pyglet-1.1/pyglet/image/__init__.py", line 2048,
in blit_to_texture
self.x, self.y, self.width, self.height)
File "/home/dmoisset/src/3rdparty/pyglet-1.1/pyglet/gl/lib.py", line 105, in errcheck
raise GLException(msg)
pyglet.gl.lib.GLException: invalid value
Original comment by dmoisset...@gtempaccount.com
on 18 Aug 2008 at 9:23
The allocated texture has the size of the virtual screen instead of the real
window,
so it is to small.
I am committing a patch with fixes this, and I think it could fix Hugo's
problems
too, but someone should check.
Original comment by dmoisset...@gtempaccount.com
on 18 Aug 2008 at 9:27
is there a test for this? were the changes commited?
Original comment by lucio.to...@gmail.com
on 15 Sep 2008 at 11:48
cocos 0.5 don't show this defect.
Original comment by ccanepacc@gmail.com
on 26 Feb 2012 at 5:11
Original issue reported on code.google.com by
hugorusc...@gmail.com
on 16 Jun 2008 at 5:41Attachments: