haiku: Removed unused internal function.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 18 Jun 2017 23:00:42 +0200
changeset 111095f33dc4d399e
parent 11108 9c7a4a9b79d7
child 11110 db5c09aa4fd4
haiku: Removed unused internal function.

Its functionality is already in SDL_GL_GetAttribute().
src/video/haiku/SDL_bopengl.cc
     1.1 --- a/src/video/haiku/SDL_bopengl.cc	Sun Jun 18 23:00:27 2017 +0200
     1.2 +++ b/src/video/haiku/SDL_bopengl.cc	Sun Jun 18 23:00:42 2017 +0200
     1.3 @@ -167,72 +167,6 @@
     1.4  }
     1.5  
     1.6  
     1.7 -#if 0 /* Functions from 1.2 that do not appear to be used in 1.3 */
     1.8 -
     1.9 -    int BE_GL_GetAttribute(_THIS, SDL_GLattr attrib, int *value)
    1.10 -    {
    1.11 -        /*
    1.12 -           FIXME? Right now BE_GL_GetAttribute shouldn't be called between glBegin() and glEnd() - it doesn't use "cached" values
    1.13 -         */
    1.14 -        switch (attrib) {
    1.15 -        case SDL_GL_RED_SIZE:
    1.16 -            glGetIntegerv(GL_RED_BITS, (GLint *) value);
    1.17 -            break;
    1.18 -        case SDL_GL_GREEN_SIZE:
    1.19 -            glGetIntegerv(GL_GREEN_BITS, (GLint *) value);
    1.20 -            break;
    1.21 -        case SDL_GL_BLUE_SIZE:
    1.22 -            glGetIntegerv(GL_BLUE_BITS, (GLint *) value);
    1.23 -            break;
    1.24 -        case SDL_GL_ALPHA_SIZE:
    1.25 -            glGetIntegerv(GL_ALPHA_BITS, (GLint *) value);
    1.26 -            break;
    1.27 -        case SDL_GL_DOUBLEBUFFER:
    1.28 -            glGetBooleanv(GL_DOUBLEBUFFER, (GLboolean *) value);
    1.29 -            break;
    1.30 -        case SDL_GL_BUFFER_SIZE:
    1.31 -            int v;
    1.32 -            glGetIntegerv(GL_RED_BITS, (GLint *) & v);
    1.33 -            *value = v;
    1.34 -            glGetIntegerv(GL_GREEN_BITS, (GLint *) & v);
    1.35 -            *value += v;
    1.36 -            glGetIntegerv(GL_BLUE_BITS, (GLint *) & v);
    1.37 -            *value += v;
    1.38 -            glGetIntegerv(GL_ALPHA_BITS, (GLint *) & v);
    1.39 -            *value += v;
    1.40 -            break;
    1.41 -        case SDL_GL_DEPTH_SIZE:
    1.42 -            glGetIntegerv(GL_DEPTH_BITS, (GLint *) value);      /* Mesa creates 16 only? r5 always 32 */
    1.43 -            break;
    1.44 -        case SDL_GL_STENCIL_SIZE:
    1.45 -            glGetIntegerv(GL_STENCIL_BITS, (GLint *) value);
    1.46 -            break;
    1.47 -        case SDL_GL_ACCUM_RED_SIZE:
    1.48 -            glGetIntegerv(GL_ACCUM_RED_BITS, (GLint *) value);
    1.49 -            break;
    1.50 -        case SDL_GL_ACCUM_GREEN_SIZE:
    1.51 -            glGetIntegerv(GL_ACCUM_GREEN_BITS, (GLint *) value);
    1.52 -            break;
    1.53 -        case SDL_GL_ACCUM_BLUE_SIZE:
    1.54 -            glGetIntegerv(GL_ACCUM_BLUE_BITS, (GLint *) value);
    1.55 -            break;
    1.56 -        case SDL_GL_ACCUM_ALPHA_SIZE:
    1.57 -            glGetIntegerv(GL_ACCUM_ALPHA_BITS, (GLint *) value);
    1.58 -            break;
    1.59 -        case SDL_GL_STEREO:
    1.60 -        case SDL_GL_MULTISAMPLEBUFFERS:
    1.61 -        case SDL_GL_MULTISAMPLESAMPLES:
    1.62 -        default:
    1.63 -            *value = 0;
    1.64 -            return (-1);
    1.65 -        }
    1.66 -        return 0;
    1.67 -    }
    1.68 -
    1.69 -#endif
    1.70 -
    1.71 -
    1.72 -
    1.73  #ifdef __cplusplus
    1.74  }
    1.75  #endif