mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
Disable check_copytex_fragment_ops - it doesn't really apply.
This commit is contained in:
parent
a97a1439ae
commit
84c1b82081
1 changed files with 6 additions and 3 deletions
|
|
@ -45,8 +45,9 @@
|
|||
static struct intel_region *get_teximage_source( struct intel_context *intel,
|
||||
GLenum internalFormat )
|
||||
{
|
||||
DBG("%s %s\n", __FUNCTION__,
|
||||
_mesa_lookup_enum_by_nr(internalFormat));
|
||||
if (0)
|
||||
_mesa_printf("%s %s\n", __FUNCTION__,
|
||||
_mesa_lookup_enum_by_nr(internalFormat));
|
||||
|
||||
switch (internalFormat) {
|
||||
case GL_DEPTH_COMPONENT:
|
||||
|
|
@ -72,6 +73,8 @@ static struct intel_region *get_teximage_source( struct intel_context *intel,
|
|||
|
||||
static GLboolean check_copytex_fragment_ops( const GLcontext *ctx )
|
||||
{
|
||||
return GL_TRUE;
|
||||
|
||||
return !(ctx->Color.AlphaEnabled ||
|
||||
/* ctx->Depth.Test || */
|
||||
ctx->Fog.Enabled ||
|
||||
|
|
@ -97,7 +100,7 @@ static GLboolean do_copy_texsubimage( struct intel_context *intel,
|
|||
struct intel_region *src = get_teximage_source(intel, internalFormat);
|
||||
GLuint ret = GL_TRUE;
|
||||
|
||||
if (!intelImage->mt)
|
||||
if (!intelImage->mt || !src)
|
||||
return GL_FALSE;
|
||||
|
||||
if (!check_copytex_fragment_ops( ctx ))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue