forked from enlightenment/efl
parent
940a75b5a8
commit
dc0946e205
|
@ -119,7 +119,7 @@ _evgl_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint*
|
|||
precision[0] = 24; // floor(-log2((1.0/16777218.0)));
|
||||
}
|
||||
return;
|
||||
shadertype = precisiontype = 0;
|
||||
if (shadertype) shadertype = precisiontype = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -109,15 +109,16 @@ _tex_format_index(GLuint format)
|
|||
static void
|
||||
_tex_2d(int intfmt, int w, int h, int fmt, int type)
|
||||
{
|
||||
#ifdef GL_TEXTURE_INTERNAL_FORMAT
|
||||
int intfmtret = -1;
|
||||
#endif
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, intfmt, w, h, 0, fmt, type, NULL);
|
||||
GLERR(__FUNCTION__, __FILE__, __LINE__, "");
|
||||
#ifdef GL_TEXTURE_INTERNAL_FORMAT
|
||||
# ifdef GL_GLES
|
||||
# else
|
||||
// this is not in opengles!!! hrrrm
|
||||
if (glGetTexLevelParameteriv)
|
||||
// if (glGetTexLevelParameteriv) // in case of weak symbols?
|
||||
{
|
||||
int intfmtret = -1;
|
||||
|
||||
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0,
|
||||
GL_TEXTURE_INTERNAL_FORMAT, &intfmtret);
|
||||
if (intfmtret != intfmt)
|
||||
|
@ -126,10 +127,11 @@ _tex_2d(int intfmt, int w, int h, int fmt, int type)
|
|||
// XXX send async err to evas
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ERR("GL_TEXTURE_INTERNAL_FORMAT defined but no symbol loaded.");
|
||||
}
|
||||
// else
|
||||
// {
|
||||
// ERR("GL_TEXTURE_INTERNAL_FORMAT defined but no symbol loaded.");
|
||||
// }
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -591,11 +593,7 @@ _pool_tex_dynamic_new(Evas_Engine_GL_Context *gc, int w, int h, int intformat, i
|
|||
glBindTexture(GL_TEXTURE_2D, gc->pipe[0].shader.cur_tex);
|
||||
GLERR(__FUNCTION__, __FILE__, __LINE__, "");
|
||||
#else
|
||||
gc = NULL;
|
||||
w = 0;
|
||||
h = 0;
|
||||
intformat = 0;
|
||||
format = 0;
|
||||
if (gc + w + h + intformat + format) return pt;
|
||||
#endif
|
||||
return pt;
|
||||
|
||||
|
|
|
@ -133,6 +133,7 @@ _output_egl_setup(int w, int h, int rot, Display *disp, Drawable draw,
|
|||
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||
|
||||
return re;
|
||||
debug = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -278,4 +278,6 @@ evas_software_egl_outbuf_setup_x(int w, int h, int rot, Outbuf_Depth depth,
|
|||
int shape_dither, int destination_alpha)
|
||||
{
|
||||
return NULL;
|
||||
w = h = rot = depth = draw = cmap = x_depth = grayscale = max_colors = mask = shape_dither = destination_alpha = 0;
|
||||
disp = NULL; vis = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue