diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 03:01:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 03:01:46 +0000 |
commit | f8fe689a81f906d1b91bb3220acde2a4ecb14c5b (patch) | |
tree | 26484e9d7e2c67806c2d1760196ff01aaa858e8c /src/VBox/GuestHost/OpenGL/packer/pack_extensions.c | |
parent | Initial commit. (diff) | |
download | virtualbox-upstream.tar.xz virtualbox-upstream.zip |
Adding upstream version 6.0.4-dfsg.upstream/6.0.4-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/GuestHost/OpenGL/packer/pack_extensions.c')
-rw-r--r-- | src/VBox/GuestHost/OpenGL/packer/pack_extensions.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/VBox/GuestHost/OpenGL/packer/pack_extensions.c b/src/VBox/GuestHost/OpenGL/packer/pack_extensions.c new file mode 100644 index 00000000..a8ae7fc4 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/packer/pack_extensions.c @@ -0,0 +1,37 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#include "packer.h" + +int __packTexParameterNumParams( GLenum param ) +{ + switch( param ) + { +#ifdef CR_EXT_texture_filter_anisotropic + case GL_TEXTURE_MAX_ANISOTROPY_EXT: + return 1; +#endif + default: + break; + } + return 0; +} + +int __packFogParamsLength( GLenum param ) +{ + static int one_param = sizeof( GLfloat ); + (void) one_param; + switch( param ) + { +#ifdef CR_NV_fog_distance + case GL_FOG_DISTANCE_MODE_NV: + return one_param; +#endif + default: + break; + } + return 0; +} |