projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
anv/cmd_buffer: Generalize transition_color_buffer
[mesa.git]
/
src
/
util
/
format_srgb.h
diff --git
a/src/util/format_srgb.h
b/src/util/format_srgb.h
index 17ba2835f9f34ce3765a7319614d28950517552e..34b50afe3d1d3287be42fdea2b5fef92ffb54429 100644
(file)
--- a/
src/util/format_srgb.h
+++ b/
src/util/format_srgb.h
@@
-39,6
+39,7
@@
#include <stdint.h>
#include <math.h>
#include <stdint.h>
#include <math.h>
+#include "c99_compat.h"
extern const float
util_format_srgb_8unorm_to_linear_float_table[256];
extern const float
util_format_srgb_8unorm_to_linear_float_table[256];
@@
-56,7
+57,7
@@
util_format_linear_to_srgb_helper_table[104];
static inline float
util_format_linear_to_srgb_float(float cl)
{
static inline float
util_format_linear_to_srgb_float(float cl)
{
- if (cl < 0.0f)
+ if (cl <
=
0.0f)
return 0.0f;
else if (cl < 0.0031308f)
return 12.92f * cl;
return 0.0f;
else if (cl < 0.0031308f)
return 12.92f * cl;