src/video/windows/SDL_windowsopengl.h
changeset 12201 8bdc4d340419
parent 11811 5d94cb6b24d3
child 12503 806492103856
     1.1 --- a/src/video/windows/SDL_windowsopengl.h	Sat Aug 18 17:23:40 2018 -0400
     1.2 +++ b/src/video/windows/SDL_windowsopengl.h	Mon Sep 24 11:49:25 2018 -0700
     1.3 @@ -33,31 +33,31 @@
     1.4      SDL_bool HAS_WGL_ARB_create_context_robustness;
     1.5      SDL_bool HAS_WGL_ARB_create_context_no_error;
     1.6  
     1.7 -	/* Max version of OpenGL ES context that can be created if the
     1.8 -	   implementation supports WGL_EXT_create_context_es2_profile.
     1.9 -	   major = minor = 0 when unsupported.
    1.10 -	 */
    1.11 -	struct {
    1.12 -		int major;
    1.13 -		int minor;
    1.14 -	} es_profile_max_supported_version;
    1.15 +    /* Max version of OpenGL ES context that can be created if the
    1.16 +       implementation supports WGL_EXT_create_context_es2_profile.
    1.17 +       major = minor = 0 when unsupported.
    1.18 +     */
    1.19 +    struct {
    1.20 +        int major;
    1.21 +        int minor;
    1.22 +    } es_profile_max_supported_version;
    1.23  
    1.24 -	void *(WINAPI * wglGetProcAddress) (const char *proc);
    1.25 -      HGLRC(WINAPI * wglCreateContext) (HDC hdc);
    1.26 -      BOOL(WINAPI * wglDeleteContext) (HGLRC hglrc);
    1.27 -      BOOL(WINAPI * wglMakeCurrent) (HDC hdc, HGLRC hglrc);
    1.28 -      BOOL(WINAPI * wglShareLists) (HGLRC hglrc1, HGLRC hglrc2);
    1.29 -      BOOL(WINAPI * wglChoosePixelFormatARB) (HDC hdc,
    1.30 -                                              const int *piAttribIList,
    1.31 -                                              const FLOAT * pfAttribFList,
    1.32 -                                              UINT nMaxFormats,
    1.33 -                                              int *piFormats,
    1.34 -                                              UINT * nNumFormats);
    1.35 -      BOOL(WINAPI * wglGetPixelFormatAttribivARB) (HDC hdc, int iPixelFormat,
    1.36 -                                                   int iLayerPlane,
    1.37 -                                                   UINT nAttributes,
    1.38 -                                                   const int *piAttributes,
    1.39 -                                                   int *piValues);
    1.40 +    void *(WINAPI * wglGetProcAddress) (const char *proc);
    1.41 +    HGLRC(WINAPI * wglCreateContext) (HDC hdc);
    1.42 +    BOOL(WINAPI * wglDeleteContext) (HGLRC hglrc);
    1.43 +    BOOL(WINAPI * wglMakeCurrent) (HDC hdc, HGLRC hglrc);
    1.44 +    BOOL(WINAPI * wglShareLists) (HGLRC hglrc1, HGLRC hglrc2);
    1.45 +    BOOL(WINAPI * wglChoosePixelFormatARB) (HDC hdc,
    1.46 +                                            const int *piAttribIList,
    1.47 +                                            const FLOAT * pfAttribFList,
    1.48 +                                            UINT nMaxFormats,
    1.49 +                                            int *piFormats,
    1.50 +                                            UINT * nNumFormats);
    1.51 +    BOOL(WINAPI * wglGetPixelFormatAttribivARB) (HDC hdc, int iPixelFormat,
    1.52 +                                                 int iLayerPlane,
    1.53 +                                                 UINT nAttributes,
    1.54 +                                                 const int *piAttributes,
    1.55 +                                                 int *piValues);
    1.56      BOOL (WINAPI * wglSwapIntervalEXT) (int interval);
    1.57      int (WINAPI * wglGetSwapIntervalEXT) (void);
    1.58  };