OpenSubdiv: Fix broken structure alignment when using color material

This commit is contained in:
Sergey Sharybin 2016-07-19 12:27:49 +02:00
parent d8de018398
commit c883946441
2 changed files with 3 additions and 0 deletions

View file

@ -208,6 +208,7 @@ struct LightSource {
float spotCutoff;
float spotExponent;
float spotCosCutoff;
float pad, pad2;
#endif
};

View file

@ -47,6 +47,7 @@ using OpenSubdiv::Osd::GLMeshInterface;
extern "C" char datatoc_gpu_shader_opensubd_display_glsl[];
#define MAX_LIGHTS 8
typedef struct Light {
float position[4];
float ambient[4];
@ -60,6 +61,7 @@ typedef struct Light {
float spot_cutoff;
float spot_exponent;
float spot_cos_cutoff;
float pad, pad2;
#endif
} Light;