| 968 | } |
| 969 | |
| 970 | virtual bool checkStatus(const char *zfile, int line, bool silent) { |
| 971 | GLenum status; |
| 972 | status = (GLenum)glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); |
| 973 | |
| 974 | if (status != GL_FRAMEBUFFER_COMPLETE_EXT) { |
| 975 | printf("<%s : %d> - ", zfile, line); |
| 976 | } |
| 977 | |
| 978 | switch (status) { |
| 979 | case GL_FRAMEBUFFER_COMPLETE_EXT: |
| 980 | break; |
| 981 | |
| 982 | case GL_FRAMEBUFFER_UNSUPPORTED_EXT: |
| 983 | if (!silent) { |
| 984 | printf("Unsupported framebuffer format\n"); |
| 985 | } |
| 986 | |
| 987 | return false; |
| 988 | |
| 989 | case GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT: |
| 990 | if (!silent) { |
| 991 | printf("Framebuffer incomplete, missing attachment\n"); |
| 992 | } |
| 993 | |
| 994 | return false; |
| 995 | |
| 996 | case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT: |
| 997 | if (!silent) { |
| 998 | printf("Framebuffer incomplete, duplicate attachment\n"); |
| 999 | } |
| 1000 | |
| 1001 | return false; |
| 1002 | |
| 1003 | case GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT: |
| 1004 | if (!silent) { |
| 1005 | printf( |
| 1006 | "Framebuffer incomplete, attached images must have same " |
| 1007 | "dimensions\n"); |
| 1008 | } |
| 1009 | |
| 1010 | return false; |
| 1011 | |
| 1012 | case GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT: |
| 1013 | if (!silent) { |
| 1014 | printf( |
| 1015 | "Framebuffer incomplete, attached images must have same " |
| 1016 | "format\n"); |
| 1017 | } |
| 1018 | |
| 1019 | return false; |
| 1020 | |
| 1021 | case GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT: |
| 1022 | if (!silent) { |
| 1023 | printf("Framebuffer incomplete, missing draw buffer\n"); |
| 1024 | } |
| 1025 | |
| 1026 | return false; |
| 1027 |
nothing calls this directly
no outgoing calls
no test coverage detected