Unified · Split
| @@ -3570,17 +3570,15 @@ ML (init (value csock_v, value params_v)) · 3569 unmodified lines | |||
| 3570 | int ret, texcount, colorspace, mustoresize; | 3570 | int ret, texcount, colorspace, mustoresize; |
| 3571 | const char *fontpath; | 3571 | const char *fontpath; |
| 3572 | 3572 | ||
| 3573 | #if TEXT_TYPE == GL_TEXTURE_2D | ||
| 3574 | if (!strstr ((const char *) glGetString (GL_EXTENSIONS), | 3573 | if (!strstr ((const char *) glGetString (GL_EXTENSIONS), |
| 3574 | #if TEXT_TYPE == GL_TEXTURE_2D | ||
| 3575 | "texture_non_power_of_two")) { | 3575 | "texture_non_power_of_two")) { |
| 3576 | errx (1, "OpenGL does not support NPOT textures"); | 3576 | errx (1, "OpenGL does not support NPOT textures"); |
| 3577 | } | ||
| 3578 | #else | 3577 | #else |
| 3579 | if (!strstr ((const char *) glGetString (GL_EXTENSIONS), | ||
| 3580 | "texture_rectangle")) { | 3578 | "texture_rectangle")) { |
| 3581 | errx (1, "OpenGL does not support rectangular textures"); | 3579 | errx (1, "OpenGL does not support rectangular textures"); |
| 3582 | } | ||
| 3583 | #endif | 3580 | #endif |
| 3581 | } | ||
| 3584 | state.csock = Int_val (csock_v); | 3582 | state.csock = Int_val (csock_v); |
| 3585 | state.rotate = Int_val (Field (params_v, 0)); | 3583 | state.rotate = Int_val (Field (params_v, 0)); |
| 3586 | state.fitmodel = Int_val (Field (params_v, 1)); | 3584 | state.fitmodel = Int_val (Field (params_v, 1)); |