OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <stdio.h> |
| 6 |
5 #include "base/logging.h" | 7 #include "base/logging.h" |
6 | 8 |
7 #include "main.h" | 9 #include "main.h" |
8 #include "xlib_window.h" | 10 #include "xlib_window.h" |
9 #include "glx_stuff.h" | 11 #include "glx_stuff.h" |
10 #include "teartest.h" | 12 #include "teartest.h" |
11 | 13 |
12 | 14 |
13 PFNGLXBINDTEXIMAGEEXTPROC glXBindTexImageEXT = NULL; | 15 PFNGLXBINDTEXIMAGEEXTPROC glXBindTexImageEXT = NULL; |
14 PFNGLXRELEASETEXIMAGEEXTPROC glXReleaseTexImageEXT = NULL; | 16 PFNGLXRELEASETEXIMAGEEXTPROC glXReleaseTexImageEXT = NULL; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 UpdatePixmap(shift); | 65 UpdatePixmap(shift); |
64 glXBindTexImageEXT(g_xlib_display, glxpixmap, GLX_FRONT_LEFT_EXT, NULL); | 66 glXBindTexImageEXT(g_xlib_display, glxpixmap, GLX_FRONT_LEFT_EXT, NULL); |
65 break; | 67 break; |
66 | 68 |
67 case TestStop: | 69 case TestStop: |
68 glXReleaseTexImageEXT(g_xlib_display, glxpixmap, GLX_FRONT_LEFT_EXT); | 70 glXReleaseTexImageEXT(g_xlib_display, glxpixmap, GLX_FRONT_LEFT_EXT); |
69 break; | 71 break; |
70 } | 72 } |
71 return true; | 73 return true; |
72 } | 74 } |
OLD | NEW |