st/egl_g3d: Clean up for x11_drawable_get_depth.
authorChia-I Wu <olvaffe@gmail.com>
Mon, 18 Jan 2010 09:12:50 +0000 (17:12 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 18 Jan 2010 09:15:57 +0000 (17:15 +0800)
Fix a wrong comment and remove an unnecessary #include.

src/gallium/state_trackers/egl_g3d/x11/x11_screen.c
src/gallium/state_trackers/egl_g3d/x11/x11_screen.h

index bfff91db8ba0e5a1b83dc697457a96568a117949..4d68a88d2e66ff529bd41eb1a48331271254bcbb 100644 (file)
@@ -52,7 +52,7 @@ struct x11_screen {
    XVisualInfo *visuals;
    int num_visuals;
 
-   /* cached values for x11_drawable_get_format */
+   /* cached values for x11_drawable_get_depth */
    Drawable last_drawable;
    unsigned int last_depth;
 };
index ad42bffbe9c5fb86957068fd6509888affcc5b7d..bf482189053296369f8dcc0fb97ee8432914722e 100644 (file)
@@ -29,7 +29,6 @@
 #include <X11/Xutil.h>
 #include <X11/extensions/dri2tokens.h>
 #include "pipe/p_compiler.h"
-#include "pipe/p_format.h"
 #include "common/native.h"
 
 enum x11_screen_extension {