Search
lxdream.org :: lxdream/src/pvr2/glutil.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.c
changeset 1223:61684ca88599
prev1220:34e696c3a56f
next1236:d93175c36387
author nkeynes
date Wed Feb 15 18:09:02 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Add extension wrangling for max colour attachments
file annotate diff log raw
1.1 --- a/src/pvr2/glutil.c Mon Feb 13 21:52:55 2012 +1000
1.2 +++ b/src/pvr2/glutil.c Wed Feb 15 18:09:02 2012 +1000
1.3 @@ -112,6 +112,18 @@
1.4 #define DEFAULT_TERMINAL_COLUMNS 80
1.5 #define DEFAULT_COLUMN_WIDTH 34
1.6
1.7 +int glGetMaxColourAttachments()
1.8 +{
1.9 +#ifdef GL_MAX_COLOR_ATTACHMENTS
1.10 + GLint result = 0;
1.11 + glGetIntegerv(GL_MAX_COLOR_ATTACHMENTS, &result);
1.12 + return result;
1.13 +#else
1.14 + return 1;
1.15 +#endif
1.16 +}
1.17 +
1.18 +
1.19 /**
1.20 * Format a GL extension list (or other space-separated string) nicely, and
1.21 * print to the given output stream.
.