src/video/android/SDL_androidgl.c
changeset 6792 a15821a3471f
parent 6138 4c64952a58fb
child 6885 700f1b25f77f
equal deleted inserted replaced
6791:c19c5232439d 6792:a15821a3471f
    72 
    72 
    73 SDL_GLContext
    73 SDL_GLContext
    74 Android_GL_CreateContext(_THIS, SDL_Window * window)
    74 Android_GL_CreateContext(_THIS, SDL_Window * window)
    75 {
    75 {
    76     if (!Android_JNI_CreateContext(_this->gl_config.major_version,
    76     if (!Android_JNI_CreateContext(_this->gl_config.major_version,
    77                                    _this->gl_config.minor_version)) {
    77                                    _this->gl_config.minor_version,
       
    78                                    _this->gl_config.red_size,
       
    79                                    _this->gl_config.green_size,
       
    80                                    _this->gl_config.blue_size,
       
    81                                    _this->gl_config.alpha_size,
       
    82                                    _this->gl_config.buffer_size,
       
    83                                    _this->gl_config.depth_size,
       
    84                                    _this->gl_config.stencil_size,
       
    85                                    _this->gl_config.multisamplebuffers,
       
    86                                    _this->gl_config.multisamplesamples)) {
    78         SDL_SetError("Couldn't create OpenGL context - see Android log for details");
    87         SDL_SetError("Couldn't create OpenGL context - see Android log for details");
    79         return NULL;
    88         return NULL;
    80     }
    89     }
    81     return (SDL_GLContext)1;
    90     return (SDL_GLContext)1;
    82 }
    91 }