Lines Matching defs:data2
22 GLubyte *data2 = (GLubyte *) malloc(1024 * 1024 * 4);
40 data2[i] = 0;
51 glGetTexImage(GL_TEXTURE_2D, level, GL_RGBA, GL_UNSIGNED_BYTE, data2);
55 if (data2[i] != data[i]) {
57 printf("Expected value %d, found %d\n", data[i], data2[i]);
63 glGetTexImage(GL_TEXTURE_2D, level, GL_BGRA, GL_UNSIGNED_BYTE, data2);
68 const GLubyte *bgra = (GLubyte *) data2;
75 printf("Expected value %d, found %d\n", data[i], data2[i]);
86 free(data2);
146 GLubyte *data2 = (GLubyte *) malloc(w * h * 4);
166 glGetTexImage(GL_TEXTURE_2D, level, GL_RGBA, GL_UNSIGNED_BYTE, data2);
172 if (!ColorsEqual(color, data2 + i * 4)) {
179 if (!ColorsEqual(blue, data2 + i * 4)) {
186 free(data2);