Commit caa737e1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Replace a run-time assertion with a pre-processor check

parent 99daef17
...@@ -425,10 +425,11 @@ int vout_display_opengl_Display(vout_display_opengl_t *vgl, ...@@ -425,10 +425,11 @@ int vout_display_opengl_Display(vout_display_opengl_t *vgl,
#if VLCGL_TARGET == GL_TEXTURE_2D #if VLCGL_TARGET == GL_TEXTURE_2D
const float f_normw = vgl->tex_width; const float f_normw = vgl->tex_width;
const float f_normh = vgl->tex_height; const float f_normh = vgl->tex_height;
#else #elif VLCGL_TARGET == GL_TEXTURE_RECTANGLE_EXT
assert(VLCGL_TARGET == GL_TEXTURE_RECTANGLE_EXT);
const float f_normw = 1.0; const float f_normw = 1.0;
const float f_normh = 1.0; const float f_normh = 1.0;
#else
# error Unknown texture type!
#endif #endif
float f_x = (source->i_x_offset + 0 ) / f_normw; float f_x = (source->i_x_offset + 0 ) / f_normw;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment