-//---------------------------------------------------------------------------
+reateContext//
// File : RenderTexture.cpp
//---------------------------------------------------------------------------
// Copyright (c) 2002-2004 Mark J. Harris
_hGLContext = glXCreateContextPtr(_pDisplay, visInfo,
_bShareObjects ? context : NULL,
- GL_TRUE);
+ True);
if (!_hGLContext)
{
return false;
// Function : main
// Description :
//---------------------------------------------------------------------------
-int main()
+int main(int argc, char *argv[])
{
+ int argn = argc;
+ glutInit(&argn, argv);
glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
glutInitWindowPosition(50, 50);
glutInitWindowSize(512, 512);