summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f427fa)
raw | patch | inline | side by side (parent: 4f427fa)
author | kiirala <kiirala@users.sourceforge.net> | |
Wed, 6 Feb 2008 07:47:18 +0000 (07:47 +0000) | ||
committer | kiirala <kiirala@users.sourceforge.net> | |
Wed, 6 Feb 2008 07:47:18 +0000 (07:47 +0000) |
src/display/nr-3dutils.cpp | patch | blob | history |
index fa1f21d9a1a8c795b58817efe2af6c5da719ceb5..4a4cb78ec2404ba2ce98ed3faacd7332596681dd 100644 (file)
@@ -116,7 +116,7 @@ void compute_surface_normal(Fvector &N, gdouble ss, NRPixBlock *in, int i, int j
gdouble accu_x;
gdouble accu_y;
unsigned char *data = NR_PIXBLOCK_PX (in);
- g_assert(in->mode == NR_PIXBLOCK_MODE_R8G8B8A8P);
+ g_assert(NR_PIXBLOCK_BPP(in) == 4);
x_carac = get_carac(j, w, dx); //LEFT, MIDDLE or RIGHT
y_carac = get_carac(i, h, dy); //TOP, MIDDLE or BOTTOM
alpha_idx = 4*(i*w + j);