PDA

View Full Version : PixelBuffer example don't work



ArtHome
08-24-2013, 03:49 PM
Hi!

I install ClanLib 3.0.0 beta (using SVN #10247) today and compiled ClanLib\Examples\Display_Render\PixelBuffer
After run all's ok:
12092

But after pressing any key i see a blank screen:
12093

OS Win7x64 with AMD Radeon HD 7800 Series, MS Visual Studio Express 2012. What's wrong?

rombust
08-24-2013, 09:08 PM
I will not be able to test it for a week.

But try removing the line: " clan::SetupD3D setup_d3d;" in program.cpp

It's possible that GPU pixelbuffers are not working with clanD3D

ArtHome
08-25-2013, 06:41 AM
Thanks for answer.
Now there an exception instead a blank screen:
12166

Crashed at app.cpp
line 120: window.flip(0);

rombust
08-25-2013, 01:04 PM
That will be a ClanLib bug.

ArtHome
09-01-2013, 07:20 PM
Rrombust, much sleep is bad - you expect great things :)

rombust
09-02-2013, 11:02 AM
Fixed for clanGL, in GIT.

"Fix bug in GL3TextureProvider::copy_from(), using GL_PIXEL_UNPACK_BUFFER instead of GL_PIXEL_UNPACK_BUFFER_BINDING with glGetInteger()"

However on my graphics card, there is no advantage of using GPU pixel buffers. The speed is identical.

Not fixed for clanD3D. I will not be fixing it (I don't have the time for find out why it does not work)