Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualslicer4ever

Posted 14 December 2012 - 05:13 PM

ok, so i've dug through sdl to figure out how it initializes the pfd, and similar things, and try these settings:
SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 0); //Changed!
    SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 0); //Changed!
    SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 0 );  //Changed!
    SDL_GL_SetAttribute( SDL_GL_BUFFER_SIZE, 32); //Added!
    SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 24 ); //Changed!
    SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
    if ( fsaa ) {
	    SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 );
	    SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, fsaa );
    }
    if ( accel ) {
	    SDL_GL_SetAttribute( SDL_GL_ACCELERATED_VISUAL, 1 );
    }
    if ( sync ) {
	    SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 1 );
    } else {
	    SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 0 );
    }
    if ( SDL_SetVideoMode( w, h, bpp, video_flags ) == NULL ) {
	    fprintf(stderr, "Couldn't set GL mode: %s\n", SDL_GetError());
	    SDL_Quit();
	    exit(1);
    }
their is one other thing i'm curiose about, after looking through the code, but let's try this first.
also, sorry about the late response.

#2slicer4ever

Posted 14 December 2012 - 05:12 PM

ok, so i've dug through sdl to figure out how it initializes the pfd, and similar things, and try these settings:
SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 0); //Changed!
    SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 0); //Changed!
    SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 0 );  //Changed!
    SDL_GL_SetAttribute( SDL_GL_BUFFER_SIZE, 32); //Added!
    SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 24 ); //Changed!
    SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
    if ( fsaa ) {
	    SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 );
	    SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, fsaa );
    }
    if ( accel ) {
	    SDL_GL_SetAttribute( SDL_GL_ACCELERATED_VISUAL, 1 );
    }
    if ( sync ) {
	    SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 1 );
    } else {
	    SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 0 );
    }
    if ( SDL_SetVideoMode( w, h, bpp, video_flags ) == NULL ) {
	    fprintf(stderr, "Couldn't set GL mode: %s\n", SDL_GetError());
	    SDL_Quit();
	    exit(1);
    }
their is one other thing i'm curiose about, after looking through the code, but let's try this first.
also, sorry about the late response.

#1slicer4ever

Posted 14 December 2012 - 05:12 PM

ok, so i've dug through sdl to figure out how it initializes the pfd, and similar things, and try these settings:
SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 0); //Changed!
    SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 0); //Changed!
    SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 0 );  /Changed!
    SDL_GL_SetAttribute( SDL_GL_BUFFER_SIZE, 32); //Added!
    SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 24 ); //Changed!
    SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
    if ( fsaa ) {
	    SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 );
	    SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, fsaa );
    }
    if ( accel ) {
	    SDL_GL_SetAttribute( SDL_GL_ACCELERATED_VISUAL, 1 );
    }
    if ( sync ) {
	    SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 1 );
    } else {
	    SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 0 );
    }
    if ( SDL_SetVideoMode( w, h, bpp, video_flags ) == NULL ) {
	    fprintf(stderr, "Couldn't set GL mode: %s\n", SDL_GetError());
	    SDL_Quit();
	    exit(1);
    }
their is one other thing i'm curiose about, after looking through the code, but let's try this first.
also, sorry about the late response.

PARTNERS