mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 15:50:17 +01:00
added GL_BGR case to bytes_per_pixel()
This commit is contained in:
parent
7460cfabbc
commit
b4df56fcd9
1 changed files with 3 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
/* $Id: mipmap.c,v 1.7 2000/07/11 14:11:04 brianp Exp $ */
|
||||
/* $Id: mipmap.c,v 1.8 2000/10/26 21:48:18 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 3.3
|
||||
* Version: 3.4
|
||||
* Copyright (C) 1995-2000 Brian Paul
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
|
|
@ -576,6 +576,7 @@ bytes_per_pixel(GLenum format, GLenum type)
|
|||
n = 2;
|
||||
break;
|
||||
case GL_RGB:
|
||||
case GL_BGR:
|
||||
n = 3;
|
||||
break;
|
||||
case GL_RGBA:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue