comparison src/SDL_compat.c @ 1969:5d3724f64f2b

Clarified the difference between render drivers and render contexts
author Sam Lantinga <slouken@libsdl.org>
date Sun, 06 Aug 2006 00:09:04 +0000
parents 01e29c3e9a29
children 70deaf574153
comparison
equal deleted inserted replaced
1968:9f589a1f74a5 1969:5d3724f64f2b
465 if (SDL_CreateRenderer 465 if (SDL_CreateRenderer
466 (SDL_VideoWindow, -1, 466 (SDL_VideoWindow, -1,
467 SDL_RENDERER_SINGLEBUFFER | SDL_RENDERER_PRESENTDISCARD) < 0) { 467 SDL_RENDERER_SINGLEBUFFER | SDL_RENDERER_PRESENTDISCARD) < 0) {
468 return NULL; 468 return NULL;
469 } 469 }
470 SDL_GetRendererInfo(-1, &SDL_VideoRendererInfo); 470 SDL_GetRenderDriverInfo(-1, &SDL_VideoRendererInfo);
471 471
472 /* Create a texture for the screen surface */ 472 /* Create a texture for the screen surface */
473 SDL_VideoTexture = 473 SDL_VideoTexture =
474 SDL_CreateTexture(desired_format, SDL_TEXTUREACCESS_LOCAL, width, 474 SDL_CreateTexture(desired_format, SDL_TEXTUREACCESS_LOCAL, width,
475 height); 475 height);