~amaranth/compiz-core/gles

« back to all changes in this revision

Viewing changes to plugins/cube/src/cube.cpp

  • Committer: Travis Watkins
  • Date: 2011-08-10 16:56:45 UTC
  • mfrom: (2778.1.37)
  • Revision ID: travis.watkins@linaro.org-20110810165645-y5tmvfyex36bukbo
merge in gles git branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1123
1123
    if ((priv->mDesktopOpacity != OPAQUE) || (color[3] != OPAQUE))
1124
1124
    {
1125
1125
        priv->gScreen->setTexEnvMode (GL_MODULATE);
1126
 
        glEnable (GL_BLEND);
1127
1126
        glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
1128
1127
    }
1129
1128
 
1149
1148
    glEnableClientState (GL_TEXTURE_COORD_ARRAY);
1150
1149
 
1151
1150
    priv->gScreen->setTexEnvMode (GL_REPLACE);
1152
 
    glDisable (GL_BLEND);
1153
1151
    glBlendFunc (GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
1154
1152
}
1155
1153
 
1190
1188
    if ((priv->mDesktopOpacity != OPAQUE) || (color[3] != OPAQUE))
1191
1189
    {
1192
1190
        priv->gScreen->setTexEnvMode (GL_MODULATE);
1193
 
        glEnable (GL_BLEND);
1194
1191
        glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
1195
1192
    }
1196
1193
 
1206
1203
    glEnableClientState (GL_TEXTURE_COORD_ARRAY);
1207
1204
 
1208
1205
    priv->gScreen->setTexEnvMode (GL_REPLACE);
1209
 
    glDisable (GL_BLEND);
1210
1206
    glBlendFunc (GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
1211
1207
}
1212
1208