4
* An object oriented GL/GLES Abstraction/Utility Layer
6
* Copyright (C) 2011 Intel Corporation.
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library. If not, see
20
* <http://www.gnu.org/licenses/>.
25
* Neil Roberts <neil@linux.intel.com>
34
#include "cogl-pipeline-private.h"
36
#ifdef COGL_PIPELINE_PROGEND_FIXED
38
#include "cogl-context.h"
39
#include "cogl-context-private.h"
40
#include "cogl-framebuffer-private.h"
43
_cogl_pipeline_progend_fixed_pre_paint (CoglPipeline *pipeline,
44
CoglFramebuffer *framebuffer)
46
CoglContext *ctx = framebuffer->context;
48
if (pipeline->vertend != COGL_PIPELINE_VERTEND_FIXED)
51
if (ctx->current_projection_entry)
52
_cogl_matrix_entry_flush_to_gl_builtins (ctx,
53
ctx->current_projection_entry,
54
COGL_MATRIX_PROJECTION,
56
FALSE /* enable flip */);
57
if (ctx->current_modelview_entry)
58
_cogl_matrix_entry_flush_to_gl_builtins (ctx,
59
ctx->current_modelview_entry,
60
COGL_MATRIX_MODELVIEW,
62
FALSE /* enable flip */);
65
const CoglPipelineProgend _cogl_pipeline_fixed_progend =
68
NULL, /* pre_change_notify */
69
NULL, /* layer_pre_change_notify */
70
_cogl_pipeline_progend_fixed_pre_paint
73
#endif /* COGL_PIPELINE_PROGEND_FIXED */