| 58 | } |
| 59 | |
| 60 | unsigned int getClosestPowerOfTwo(unsigned int n) |
| 61 | { |
| 62 | unsigned int m = 2; |
| 63 | while(m < n) m<<=1; |
| 64 | |
| 65 | return m; |
| 66 | } |
| 67 | GLuint initTexture(void** buf, int& width, int& height) |
| 68 | { |
| 69 | GLuint texID = 0; |
no outgoing calls
no test coverage detected