rocket regions render solid white in p3tinydisplay

Bug #1457688 reported by Ed Swartz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
Undecided
rdb

Bug Description

When the display is p3tinydisplay, rocket content renders solid white. (There's a directive for this at the top of main.py.)

This is happening on Linux on the recent git release/1.9 branch.

Revision history for this message
Ed Swartz (eswartz) wrote :
Revision history for this message
Ed Swartz (eswartz) wrote :

The reason for this is that textures for libRocket are not (usually) a power of two, and p3tinydisplay silently fails to load textures in this case. I think adding checks against Texture::getTexturesPowerOf2() and adjusting sizes would fix this.

Revision history for this message
Ed Swartz (eswartz) wrote :

BTW, I was adding code to log an error for the power-of-two case due to some confusion I had in the past, and code to adjust texture sizes in FilterManager.py for the same reason. I can see if the rocket render interface can be modified easily...

Revision history for this message
Ed Swartz (eswartz) wrote :

So, I was wrong -- the power-of-two textures was not the cause of the white rendering.

Revision history for this message
Ed Swartz (eswartz) wrote :

Simpler test case

Revision history for this message
rdb (rdb) wrote :

Pushed fix: 7fa0d3c60aa853adc67a5c8574030ee3595a8236

Changed in panda3d:
assignee: nobody → rdb (rdb)
milestone: none → 1.9.1
status: New → Fix Committed
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.