瀏覽代碼

ignore test-random alpha (to ensure BGRX works)

jp9000 11 年之前
父節點
當前提交
813dfc6508
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      test/test-input/test-random.c

+ 2 - 1
test/test-input/test-random.c

@@ -37,10 +37,11 @@ static inline void fill_texture(uint32_t *pixels)
 
 
 	for (y = 0; y < 20; y++) {
 	for (y = 0; y < 20; y++) {
 		for (x = 0; x < 20; x++) {
 		for (x = 0; x < 20; x++) {
-			uint32_t pixel = 0xFF000000;
+			uint32_t pixel = 0;
 			pixel |= (rand()%256);
 			pixel |= (rand()%256);
 			pixel |= (rand()%256) << 8;
 			pixel |= (rand()%256) << 8;
 			pixel |= (rand()%256) << 16;
 			pixel |= (rand()%256) << 16;
+			//pixel |= (rand()%256) << 24;
 			//pixel |= 0xFFFFFFFF;
 			//pixel |= 0xFFFFFFFF;
 			pixels[y*20 + x] = pixel;
 			pixels[y*20 + x] = pixel;
 		}
 		}