mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
gl driver: Remove some type checks in a hot path
This commit is contained in:
parent
0e57d173b3
commit
d1a08aa2a9
@ -370,9 +370,6 @@ gsk_gl_driver_get_texture_for_texture (GskGLDriver *driver,
|
||||
Texture *t;
|
||||
cairo_surface_t *surface;
|
||||
|
||||
g_return_val_if_fail (GSK_IS_GL_DRIVER (driver), -1);
|
||||
g_return_val_if_fail (GDK_IS_TEXTURE (texture), -1);
|
||||
|
||||
t = gdk_texture_get_render_data (texture, driver);
|
||||
|
||||
if (t)
|
||||
|
Loading…
Reference in New Issue
Block a user