Fixed build of test_color.cpp on non-Windows OSs
This commit is contained in:
parent
c44fd43307
commit
ab99a7865f
@ -5377,7 +5377,9 @@ void GLCanvas3D::_render_overlays()
|
||||
|
||||
void GLCanvas3D::_render_volumes_for_picking() const
|
||||
{
|
||||
#if !ENABLE_COLOR_CLASSES
|
||||
static const GLfloat INV_255 = 1.0f / 255.0f;
|
||||
#endif // !ENABLE_COLOR_CLASSES
|
||||
|
||||
// do not cull backfaces to show broken geometry, if any
|
||||
glsafe(::glDisable(GL_CULL_FACE));
|
||||
|
@ -9,7 +9,7 @@ using namespace Slic3r;
|
||||
|
||||
SCENARIO("Color encoding/decoding cycle", "[Color]") {
|
||||
GIVEN("Color") {
|
||||
const ColorRGB src_rgb(unsigned char(255), unsigned char(127), unsigned char(63));
|
||||
const ColorRGB src_rgb(static_cast<unsigned char>(255), static_cast<unsigned char>(127), static_cast<unsigned char>(63));
|
||||
WHEN("apply encode/decode cycle") {
|
||||
const std::string encoded = encode_color(src_rgb);
|
||||
ColorRGB res_rgb;
|
||||
@ -24,7 +24,7 @@ SCENARIO("Color encoding/decoding cycle", "[Color]") {
|
||||
|
||||
SCENARIO("Color picking encoding/decoding cycle", "[Color]") {
|
||||
GIVEN("Picking color") {
|
||||
const ColorRGB src_rgb(unsigned char(255), unsigned char(127), unsigned char(63));
|
||||
const ColorRGB src_rgb(static_cast<unsigned char>(255), static_cast<unsigned char>(127), static_cast<unsigned char>(63));
|
||||
WHEN("apply encode/decode cycle") {
|
||||
const unsigned int encoded = picking_encode(src_rgb.r_uchar(), src_rgb.g_uchar(), src_rgb.b_uchar());
|
||||
const ColorRGBA res_rgba = picking_decode(encoded);
|
||||
|
Loading…
Reference in New Issue
Block a user