haiku: Removed unused internal function.
Its functionality is already in SDL_GL_GetAttribute().
parent
cc00a300d1
commit
267dca13fa
|
@ -167,72 +167,6 @@ void BE_GL_RebootContexts(_THIS) {
|
|||
}
|
||||
|
||||
|
||||
#if 0 /* Functions from 1.2 that do not appear to be used in 1.3 */
|
||||
|
||||
int BE_GL_GetAttribute(_THIS, SDL_GLattr attrib, int *value)
|
||||
{
|
||||
/*
|
||||
FIXME? Right now BE_GL_GetAttribute shouldn't be called between glBegin() and glEnd() - it doesn't use "cached" values
|
||||
*/
|
||||
switch (attrib) {
|
||||
case SDL_GL_RED_SIZE:
|
||||
glGetIntegerv(GL_RED_BITS, (GLint *) value);
|
||||
break;
|
||||
case SDL_GL_GREEN_SIZE:
|
||||
glGetIntegerv(GL_GREEN_BITS, (GLint *) value);
|
||||
break;
|
||||
case SDL_GL_BLUE_SIZE:
|
||||
glGetIntegerv(GL_BLUE_BITS, (GLint *) value);
|
||||
break;
|
||||
case SDL_GL_ALPHA_SIZE:
|
||||
glGetIntegerv(GL_ALPHA_BITS, (GLint *) value);
|
||||
break;
|
||||
case SDL_GL_DOUBLEBUFFER:
|
||||
glGetBooleanv(GL_DOUBLEBUFFER, (GLboolean *) value);
|
||||
break;
|
||||
case SDL_GL_BUFFER_SIZE:
|
||||
int v;
|
||||
glGetIntegerv(GL_RED_BITS, (GLint *) & v);
|
||||
*value = v;
|
||||
glGetIntegerv(GL_GREEN_BITS, (GLint *) & v);
|
||||
*value += v;
|
||||
glGetIntegerv(GL_BLUE_BITS, (GLint *) & v);
|
||||
*value += v;
|
||||
glGetIntegerv(GL_ALPHA_BITS, (GLint *) & v);
|
||||
*value += v;
|
||||
break;
|
||||
case SDL_GL_DEPTH_SIZE:
|
||||
glGetIntegerv(GL_DEPTH_BITS, (GLint *) value); /* Mesa creates 16 only? r5 always 32 */
|
||||
break;
|
||||
case SDL_GL_STENCIL_SIZE:
|
||||
glGetIntegerv(GL_STENCIL_BITS, (GLint *) value);
|
||||
break;
|
||||
case SDL_GL_ACCUM_RED_SIZE:
|
||||
glGetIntegerv(GL_ACCUM_RED_BITS, (GLint *) value);
|
||||
break;
|
||||
case SDL_GL_ACCUM_GREEN_SIZE:
|
||||
glGetIntegerv(GL_ACCUM_GREEN_BITS, (GLint *) value);
|
||||
break;
|
||||
case SDL_GL_ACCUM_BLUE_SIZE:
|
||||
glGetIntegerv(GL_ACCUM_BLUE_BITS, (GLint *) value);
|
||||
break;
|
||||
case SDL_GL_ACCUM_ALPHA_SIZE:
|
||||
glGetIntegerv(GL_ACCUM_ALPHA_BITS, (GLint *) value);
|
||||
break;
|
||||
case SDL_GL_STEREO:
|
||||
case SDL_GL_MULTISAMPLEBUFFERS:
|
||||
case SDL_GL_MULTISAMPLESAMPLES:
|
||||
default:
|
||||
*value = 0;
|
||||
return (-1);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue