diff src/video/SDL_video.c @ 656:864e2d2a9a55

Merged in Ryan's multisample code for MacOS, and changed the constants to match.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 22 Jul 2003 15:33:28 +0000
parents 9c42ee1b7d77
children 66c02f83f5bf
line wrap: on
line diff
--- a/src/video/SDL_video.c	Tue Jul 22 15:10:06 2003 +0000
+++ b/src/video/SDL_video.c	Tue Jul 22 15:33:28 2003 +0000
@@ -233,8 +233,8 @@
 	video->gl_config.accum_blue_size = 0;
 	video->gl_config.accum_alpha_size = 0;
 	video->gl_config.stereo = 0;
-	video->gl_config.sample_buffers = 0;
-	video->gl_config.samples = 0;
+	video->gl_config.multisamplebuffers = 0;
+	video->gl_config.multisamplesamples = 0;
 	
 	/* Initialize the video subsystem */
 	memset(&vformat, 0, sizeof(vformat));
@@ -1422,11 +1422,11 @@
 		case SDL_GL_STEREO:
 			video->gl_config.stereo = value;
 			break;
-		case SDL_GL_SAMPLE_BUFFERS:
-			video->gl_config.sample_buffers = value;
+		case SDL_GL_MULTISAMPLEBUFFERS:
+			video->gl_config.multisamplebuffers = value;
 			break;
-		case SDL_GL_SAMPLES:
-			video->gl_config.samples = value;
+		case SDL_GL_MULTISAMPLESAMPLES:
+			video->gl_config.multisamplesamples = value;
 			break;
 		default:
 			SDL_SetError("Unknown OpenGL attribute");