mirror of
https://github.com/brl/mutter.git
synced 2024-12-22 11:02:05 +00:00
cogl: Remove some dead stores not flagged by the compiler
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1194
This commit is contained in:
parent
1f5d6a01f5
commit
ab9f241cc5
@ -62,11 +62,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
/* This isn't defined in the GLES headers */
|
||||
#ifndef GL_RED
|
||||
#define GL_RED 0x1903
|
||||
#endif
|
||||
|
||||
COGL_GTYPE_DEFINE_INTERFACE (Texture, texture);
|
||||
|
||||
uint32_t
|
||||
@ -786,8 +781,6 @@ cogl_texture_get_data (CoglTexture *texture,
|
||||
if (texture_format == COGL_PIXEL_FORMAT_A_8)
|
||||
{
|
||||
closest_format = COGL_PIXEL_FORMAT_A_8;
|
||||
closest_gl_format = GL_RED;
|
||||
closest_gl_type = GL_UNSIGNED_BYTE;
|
||||
}
|
||||
else if (format == COGL_PIXEL_FORMAT_A_8)
|
||||
{
|
||||
@ -798,8 +791,6 @@ cogl_texture_get_data (CoglTexture *texture,
|
||||
* pre-multiplied here because we're only going to look at
|
||||
* the alpha component */
|
||||
closest_format = COGL_PIXEL_FORMAT_RGBA_8888;
|
||||
closest_gl_format = GL_RGBA;
|
||||
closest_gl_type = GL_UNSIGNED_BYTE;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user