cogl-texture-2d: Determine format before checking texture support
authorNeil Roberts <neil@linux.intel.com>
Wed, 10 Mar 2010 00:37:52 +0000 (16:37 -0800)
committerNeil Roberts <neil@linux.intel.com>
Mon, 15 Mar 2010 16:09:52 +0000 (16:09 +0000)
commitc2faaa4f39d3ad69523e806bffe4651545c0bdea
tree21788d9546fa4e0dae3c046a2c5bab5511ec8e41
parenta25885edf294be0bc4a6710cc3fd7dec4b3ef013
cogl-texture-2d: Determine format before checking texture support

When entering cogl_texture_2d_new_from_bitmap the internal format can
be COGL_PIXEL_FORMAT_ANY. This was causing _cogl_texture_2d_can_create
to use an invalid GL format type. Mesa apparently ignores this but it
was causing errors when Cogl is compiled with debugging under NVidia.

http://bugzilla.openedhand.com/show_bug.cgi?id=2026
clutter/cogl/cogl/cogl-texture-2d.c