I'm using off-screen rendering along with Panda3D game engine:
http://code.google.com/p/cefpython/wiki/Panda3D
Everything works fine, there is only a problem when I click dropdown menu on a webpage, I get an assertion error in Panda3D:
- Code: Select all
Traceback (most recent call last):
File "c:\Panda3D-1.8.0\direct\showbase\ShowBase.py", line 1844, in __igLoop
self.graphicsEngine.renderFrame()
AssertionError: image_ptr >= orig_image_ptr && image_ptr + view_size <= orig_image_ptr + tex->get_ram_mipmap_image_size(
n) at line 8893 of c:\buildslave\release_sdk_win32\build\panda3d\panda\src\glstuff\glGraphicsStateGuardian_src.cxx
There seems to be something wrong with the void* buffer provided in OnPaint() when dropdown menu appears.
In CefRenderHandler I've implemented only OnPaint() event, do I need to implement also GetViewRect(), GetScreenRect() & GetScreenPoint()? I've tried making the browser view on whole screen and provided coordinates to these functions, but still I get the same assertion error.
I'm not sure what is going on, what is different in OnPaint() event when drop down menu appears?
Czarek.