(0x887600647)". This happens if I set either the "DDSD_BACKBUFFERCOUNT"
or the "DDSCAPS_FLIP" or "DSCAPS_COMPLEX" flags. In the examples I have
seen these flags seem to be necessary for double buffering.
This is my code:
ddsd = new DDSurfaceDesc();
ddsd.flags = DDSD_CAPS | DDSD_BACKBUFFERCOUNT ;
ddsd.ddsCaps = DDSCAPS_PRIMARYSURFACE |DDSCAPS_FLIP | DSCAPS_COMPLEX;
ddsd.backBufferCount = 1;
ddsPrimary = dd.createSurface(ddsd);
I'm hoping that I'm just missing a step. If anyone has done this and
can send me a working example of double buffering with Directx in Java
it would be greatly appreciated. Thanks.