darkwarssbg / nebula3

Automatically exported from code.google.com/p/nebula3
0 stars 0 forks source link

Is this a bug? #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
the "testrenderer.exe" will crash when it is running. this is because the 
wrong format of the default rendertarget. I found the default pixel format 
of the DisplayMode is InvalidPixelFormat, so I changed it to X8R8G8B8. Now 
the example is running correctly.

/**
    This constructor is suitable for windowed modes.
*/
inline
DisplayMode::DisplayMode(uint x, uint y, uint w, uint h) :
    xPos(x),
    yPos(y),
    width(w),
    height(h),
    pixelFormat(PixelFormat::X8R8G8B8)
{
    // empty
}

Original issue reported on code.google.com by xoyoj...@gmail.com on 31 Jul 2008 at 1:25