gl-renderer: Add pixel storage modes section to best practices

Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
This commit is contained in:
Loïc Molinari 2024-07-23 15:40:02 +02:00 committed by Daniel Stone
parent fb4cccc290
commit 2d8c1af8b7
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@
* 1. Fixed allocation using the gl_tex_unit enumeration. * 1. Fixed allocation using the gl_tex_unit enumeration.
* 2. Any functions changing the active unit must restore it to 0 before * 2. Any functions changing the active unit must restore it to 0 before
* return so that other functions can assume a default value. * return so that other functions can assume a default value.
*
* 1. Pixel storage modes
* 1. Any functions changing modes must restore them to their default values
* before return so that other functions can assume default values.
*/ */
#ifndef GL_RENDERER_INTERNAL_H #ifndef GL_RENDERER_INTERNAL_H