mesa: s/GLint/gl_buffer_index/ for _ColorReadBufferIndex
authorBrian Paul <brianp@vmware.com>
Thu, 9 Nov 2017 05:09:59 +0000 (22:09 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 9 Nov 2017 21:13:59 +0000 (14:13 -0700)
BUFFER_NONE is -1 so no reason for GLint.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/main/mtypes.h

index af9115e847759bc7341413f176e3456a9d0578b9..a8e2b39d40b002fd30cccef0696c2ffff858a859 100644 (file)
@@ -3484,7 +3484,7 @@ struct gl_framebuffer
    /** Computed from ColorDraw/ReadBuffer above */
    GLuint _NumColorDrawBuffers;
    GLint _ColorDrawBufferIndexes[MAX_DRAW_BUFFERS]; /**< BUFFER_x or -1 */
-   GLint _ColorReadBufferIndex; /* -1 = None */
+   gl_buffer_index _ColorReadBufferIndex;
    struct gl_renderbuffer *_ColorDrawBuffers[MAX_DRAW_BUFFERS];
    struct gl_renderbuffer *_ColorReadBuffer;