bbWindowed3D

Blitz3D SDK Forums/Blitz3D SDK Programming/bbWindowed3D

Please take a look at the following piece of code (Dev-C++):

void Init3D(HWND hwnd)
{
    if (!hwnd)
      return false;
    if (!bbWindowed3D())
      return false;
    bbSetBlitz3DHWND((int)hwnd);
    bbBeginBlitz3D();
    bbGraphics3D(GetSystemMetrics(SM_CXFULLSCREEN), GetSystemMetrics(SM_CYFULLSCREEN), 0, GFX_WINDOWEDSCALED);
}



My program crashes if I make a function call to bbWindowed3D
If I remove it everything works fine.

NOTE: The Init3D call takes place after the Window creation