1 Checks that ReadPixels works as expected.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS color pixel at 0, 0 should be about 127.5
8 PASS color pixel at 0, 0 should be about 178.5
9 PASS color pixel at 0, 0 should be about 255
10 PASS color pixel at 0, 0 should be about 255
11 PASS color pixel at 1, 0 should be about 127.5
12 PASS color pixel at 1, 0 should be about 178.5
13 PASS color pixel at 1, 0 should be about 255
14 PASS color pixel at 1, 0 should be about 255
15 PASS color pixel at 0, 1 should be about 127.5
16 PASS color pixel at 0, 1 should be about 178.5
17 PASS color pixel at 0, 1 should be about 255
18 PASS color pixel at 0, 1 should be about 255
19 PASS color pixel at 1, 1 should be about 127.5
20 PASS color pixel at 1, 1 should be about 178.5
21 PASS color pixel at 1, 1 should be about 255
22 PASS color pixel at 1, 1 should be about 255
24 checking: off top left
25 PASS color pixel at 0, 0 should be about 0
26 PASS color pixel at 0, 0 should be about 0
27 PASS color pixel at 0, 0 should be about 0
28 PASS color pixel at 0, 0 should be about 0
29 PASS color pixel at 1, 0 should be about 0
30 PASS color pixel at 1, 0 should be about 0
31 PASS color pixel at 1, 0 should be about 0
32 PASS color pixel at 1, 0 should be about 0
33 PASS color pixel at 0, 1 should be about 0
34 PASS color pixel at 0, 1 should be about 0
35 PASS color pixel at 0, 1 should be about 0
36 PASS color pixel at 0, 1 should be about 0
37 PASS color pixel at 1, 1 should be about 127.5
38 PASS color pixel at 1, 1 should be about 178.5
39 PASS color pixel at 1, 1 should be about 255
40 PASS color pixel at 1, 1 should be about 255
42 checking: off bottom right
43 PASS color pixel at 0, 0 should be about 127.5
44 PASS color pixel at 0, 0 should be about 178.5
45 PASS color pixel at 0, 0 should be about 255
46 PASS color pixel at 0, 0 should be about 255
47 PASS color pixel at 1, 0 should be about 0
48 PASS color pixel at 1, 0 should be about 0
49 PASS color pixel at 1, 0 should be about 0
50 PASS color pixel at 1, 0 should be about 0
51 PASS color pixel at 0, 1 should be about 0
52 PASS color pixel at 0, 1 should be about 0
53 PASS color pixel at 0, 1 should be about 0
54 PASS color pixel at 0, 1 should be about 0
55 PASS color pixel at 1, 1 should be about 0
56 PASS color pixel at 1, 1 should be about 0
57 PASS color pixel at 1, 1 should be about 0
58 PASS color pixel at 1, 1 should be about 0
60 checking: completely off top
61 PASS color pixel at 0, 0 should be about 0
62 PASS color pixel at 0, 0 should be about 0
63 PASS color pixel at 0, 0 should be about 0
64 PASS color pixel at 0, 0 should be about 0
65 PASS color pixel at 1, 0 should be about 0
66 PASS color pixel at 1, 0 should be about 0
67 PASS color pixel at 1, 0 should be about 0
68 PASS color pixel at 1, 0 should be about 0
69 PASS color pixel at 0, 1 should be about 0
70 PASS color pixel at 0, 1 should be about 0
71 PASS color pixel at 0, 1 should be about 0
72 PASS color pixel at 0, 1 should be about 0
73 PASS color pixel at 1, 1 should be about 0
74 PASS color pixel at 1, 1 should be about 0
75 PASS color pixel at 1, 1 should be about 0
76 PASS color pixel at 1, 1 should be about 0
78 checking: completely off bottom
79 PASS color pixel at 0, 0 should be about 0
80 PASS color pixel at 0, 0 should be about 0
81 PASS color pixel at 0, 0 should be about 0
82 PASS color pixel at 0, 0 should be about 0
83 PASS color pixel at 1, 0 should be about 0
84 PASS color pixel at 1, 0 should be about 0
85 PASS color pixel at 1, 0 should be about 0
86 PASS color pixel at 1, 0 should be about 0
87 PASS color pixel at 0, 1 should be about 0
88 PASS color pixel at 0, 1 should be about 0
89 PASS color pixel at 0, 1 should be about 0
90 PASS color pixel at 0, 1 should be about 0
91 PASS color pixel at 1, 1 should be about 0
92 PASS color pixel at 1, 1 should be about 0
93 PASS color pixel at 1, 1 should be about 0
94 PASS color pixel at 1, 1 should be about 0
96 checking: completely off left
97 PASS color pixel at 0, 0 should be about 0
98 PASS color pixel at 0, 0 should be about 0
99 PASS color pixel at 0, 0 should be about 0
100 PASS color pixel at 0, 0 should be about 0
101 PASS color pixel at 1, 0 should be about 0
102 PASS color pixel at 1, 0 should be about 0
103 PASS color pixel at 1, 0 should be about 0
104 PASS color pixel at 1, 0 should be about 0
105 PASS color pixel at 0, 1 should be about 0
106 PASS color pixel at 0, 1 should be about 0
107 PASS color pixel at 0, 1 should be about 0
108 PASS color pixel at 0, 1 should be about 0
109 PASS color pixel at 1, 1 should be about 0
110 PASS color pixel at 1, 1 should be about 0
111 PASS color pixel at 1, 1 should be about 0
112 PASS color pixel at 1, 1 should be about 0
114 checking: completeley off right
115 PASS color pixel at 0, 0 should be about 0
116 PASS color pixel at 0, 0 should be about 0
117 PASS color pixel at 0, 0 should be about 0
118 PASS color pixel at 0, 0 should be about 0
119 PASS color pixel at 1, 0 should be about 0
120 PASS color pixel at 1, 0 should be about 0
121 PASS color pixel at 1, 0 should be about 0
122 PASS color pixel at 1, 0 should be about 0
123 PASS color pixel at 0, 1 should be about 0
124 PASS color pixel at 0, 1 should be about 0
125 PASS color pixel at 0, 1 should be about 0
126 PASS color pixel at 0, 1 should be about 0
127 PASS color pixel at 1, 1 should be about 0
128 PASS color pixel at 1, 1 should be about 0
129 PASS color pixel at 1, 1 should be about 0
130 PASS color pixel at 1, 1 should be about 0
131 PASS getError was expected value: NO_ERROR : there should be no GL errors
133 check disallowed formats
134 PASS getError was expected value: INVALID_OPERATION : Should not be able to read as RGB / UNSIGNED_BYTE
135 PASS getError was expected value: INVALID_OPERATION : Should not be able to read as RGB / UNSIGNED_SHORT_5_6_5
136 PASS getError was expected value: INVALID_OPERATION : Should not be able to read as RGBA / UNSIGNED_SHORT_5_5_5_1
137 PASS getError was expected value: INVALID_OPERATION : Should not be able to read as RGBA / UNSIGNED_SHORT_4_4_4_4
138 PASS getError was expected value: INVALID_OPERATION : Should not be able to read as ALPHA / UNSIGNED_BYTE
139 PASS getError was expected value: INVALID_ENUM : Should not be able to read as LUMINANCE / UNSIGNED_BYTE
140 PASS getError was expected value: INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / UNSIGNED_BYTE
142 check reading with lots of drawing
143 PASS actual is expected
144 PASS actual is expected
145 PASS actual is expected
146 PASS getError was expected value: NO_ERROR : there should be no GL errors
148 PASS successfullyParsed is true