Skip to content
Snippets Groups Projects
Commit 4ac60af5 authored by Niklas Haas's avatar Niklas Haas
Browse files

opengl: suppress compiler warning

This warns about the cast from anonymous enum to named enum, so use a
preprocessor symbol for them instead.
parent 4b49bfde
No related branches found
No related tags found
No related merge requests found
Pipeline #18477 passed with stages
in 7 minutes and 25 seconds
......@@ -45,15 +45,15 @@ enum {
C_RGI = GL_RG_INTEGER,
C_RGBI = GL_RGB_INTEGER,
C_RGBAI = GL_RGBA_INTEGER,
// Capability aliases
F_S = PL_FMT_CAP_SAMPLEABLE,
F_VF = PL_FMT_CAP_VERTEX,
F_CR = PL_FMT_CAP_RENDERABLE | PL_FMT_CAP_BLITTABLE,
F_TF = PL_FMT_CAP_LINEAR,
F_CFS = F_CR | F_TF | F_S, // typical combination
};
// Capability aliases
#define F_S PL_FMT_CAP_SAMPLEABLE
#define F_VF PL_FMT_CAP_VERTEX
#define F_CR (PL_FMT_CAP_RENDERABLE | PL_FMT_CAP_BLITTABLE)
#define F_TF PL_FMT_CAP_LINEAR
#define F_CFS (F_CR | F_TF | F_S)
const struct gl_format gl_formats[] = {
// Copyright note: This list and the feature flags are largely copied 1:1
// from mpv.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment