equal
deleted
inserted
replaced
598 |
598 |
599 {$IFDEF DEBUGFILE} |
599 {$IFDEF DEBUGFILE} |
600 AddFileLog('Prepare to change video parameters...'); |
600 AddFileLog('Prepare to change video parameters...'); |
601 {$ENDIF} |
601 {$ENDIF} |
602 |
602 |
603 {$IFNDEF IPHONEOS} |
603 {$IFDEF IPHONEOS} |
604 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); |
|
605 {$ELSE} |
|
606 // remove these if they cause incompatibility |
|
607 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0); |
604 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0); |
608 SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1); |
605 SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1); |
609 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); |
606 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); |
|
607 SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); |
|
608 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); |
|
609 SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); |
|
610 SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8); |
|
611 SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32); |
|
612 {$ELSE} |
|
613 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); |
610 {$ENDIF} |
614 {$ENDIF} |
611 |
615 |
612 {$IFNDEF SDL13} |
616 {$IFNDEF SDL13} |
613 // this attribute is default in 1.3 |
617 // this attribute is default in 1.3 |
614 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); |
618 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); |