static bool loadbitmap = false; string bmppic = getOgcDirFile(cmd.argC(423)); bmppic += "console.bmp"; if (!loadbitmap) { if(CreateTexture(g_Texture, (char*)bmppic.c_str(), 0)) loadbitmap = true; }