Add a New Comment (Rich Markup)
Comment Type & Canned Response: None No canned response available
Managed to duplicate this behaviour. It happens when the surface is exact the same or one less than the max texture size. Will look into this.
I see some code added for this, could you please check if this bug still applies?
Note to self: Make sure sprite packer dont pack single frames. Also textures at edges dont need extra width.
Could you add the offending sprite to the resources in the sprite Test in clanlib?
I'll look into it next week. It should first of all use the max-texture-size from OpenGL, and not a fixed 1024 :)
The SpritePacker gets stuck in an endless loop in Advent at line sprite_packer.cpp:125, backtrace follows below. This might be because Advent uses very large sprites, larger than what the gfx card can support (2048x600 or something like that)
(gdb) where #0 0x4038cb53 in _List_iterator (this=0xbfffe1f0, __x=0x81ae800) at /usr/include/c++/3.2/bits/stl_list.h:127 #1 0x4038c648 in std::list<std::pair<int, CL_Rect>, std::allocator<std::pair<int, CL_Rect> > >::end() (this=0x8241588) at /usr/include/c++/3.2/bits/stl_list.h:373 #2 0x4038c185 in CL_SpritePacker::pack(int, int, int, int, int) ( this=0xbfffe3e0, max_width=1024, max_height=1024, min_width=16, min_height=16, max_textures=-1) at sprite_packer.cpp:125 #3 0x40390684 in CL_Sprite (this=0xbfffe4b0, spritedescription=@0xbfffe4a0, pack_texture=true) at sprite.cpp:64 #4 0x402d9393 in SurfaceSprite (this=0x8241018, arg_filename= {static npos = 4294967295, _M_dataplus = {<allocator<char>> = {<No data fields>}, _M_p = 0x81ae76c "images/park.jpg"}, static _S_empty_rep_storage = {0, 0, 2, 0}}) at SurfaceSprite.cxx:57 #5 0x402da363 in SurfaceSprite::scm_surface_sprite_create(scm_unused_struct*) (name=0x4351eb88) at SurfaceSprite.cxx:186
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 3 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.9