equal
deleted
inserted
replaced
599 AddFileLog('Prepare to change video parameters...'); |
599 AddFileLog('Prepare to change video parameters...'); |
600 {$ENDIF} |
600 {$ENDIF} |
601 |
601 |
602 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); |
602 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); |
603 {$IFDEF IPHONEOS} |
603 {$IFDEF IPHONEOS} |
604 //remove these if they cause incompatibility |
604 // remove these if they cause incompatibility |
605 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0); |
605 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0); |
606 SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1); |
606 SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1); |
607 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); |
607 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); |
|
608 {$ELSE} |
|
609 // this attribute is default in 1.3 |
|
610 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); |
608 {$ENDIF} |
611 {$ENDIF} |
609 |
612 |
610 flags:= SDL_OPENGL;// or SDL_RESIZABLE; |
613 flags:= SDL_OPENGL;// or SDL_RESIZABLE; |
611 if cFullScreen then |
614 if cFullScreen then |
612 begin |
615 begin |