gpu: Remove unused macro

This is a leftover from the pre-color-managed times
This commit is contained in:
Benjamin Otte
2024-07-13 02:03:20 +02:00
parent 6d71dd0025
commit 761346ed5a
2 changed files with 2 additions and 12 deletions

View File

@@ -4,8 +4,8 @@
#include "gskgpuopprivate.h"
#include "gskgpuprintprivate.h"
/* for gsk_gpu_rgba_to_float() */
#include "gskgpushaderopprivate.h"
#include "gdk/gdkcolorstateprivate.h"
typedef struct _GskGpuClearOp GskGpuClearOp;

View File

@@ -66,16 +66,6 @@ GskGpuOp * gsk_gpu_shader_op_gl_command (GskGpuO
GskGpuFrame *frame,
GskGLCommandState *state);
static inline void
gsk_gpu_rgba_to_float (const GdkRGBA *rgba,
float values[4])
{
values[0] = rgba->red;
values[1] = rgba->green;
values[2] = rgba->blue;
values[3] = rgba->alpha;
}
#define GSK_RGBA_TO_VEC4(_color) (float[4]) { (_color)->red, (_color)->green, (_color)->blue, (_color)->alpha }
#define GSK_RGBA_TO_VEC4_ALPHA(_color, _alpha) (float[4]) { (_color)->red, (_color)->green, (_color)->blue, (_color)->alpha * (_alpha) }