summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 1.8.2 (release)1.8.2Neil Roberts2011-10-171-3/+3
|
* Updates NEWS for the 1.8.2 releaseNeil Roberts2011-10-171-1/+30
|
* doc/RELEASING: Add a note about testing windows compilationNeil Roberts2011-10-171-0/+6
| | | | | | | | | Now that we have reasonably good Windows support, we'd like to make sure each release still compiles there. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 8c9c01a6f4bba0174751973bec599359f92eace9)
* mingw-fetch-dependencies: Download config.guess and explicitly run itNeil Roberts2011-10-171-1/+7
| | | | | | | | | | | | Previously the instructions were telling the developer to run ./build/config.guess to get the build name to pass to configure. However that file only exists after running automake so it's a bit awkward. This patch makes it download config.guess from the gitweb for automake and just explicitly run it. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit dfb7c765672091fce1f4297ad864c38d2cba3e53)
* mingw-fetch-dependencies.sh: Fix a mention of ClutterNeil Roberts2011-10-171-1/+1
| | | | | | | | | The instructions mentioned the Clutter source tree instead of the Cogl source tree. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit a08c1978cb5b70f39064e1d516e5ff5059184190)
* mingw-fetch-dependencies.sh: Don't pass -c to wgetNeil Roberts2011-10-171-2/+7
| | | | | | | | | | | | | | The -c option for wget and -C - option to curl are used to make it continue the download if the file already exists. The idea was that it wouldn't waste time downloading the files again if the file already exists. However this causes problems if the remote file gets larger because the download will continue from the size of the old file so it will get corrupt. Instead let's just explicitly check if the file already exists and avoid calling wget or curl altogether. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit c2721664aac000588e0a20b0bb1f8e896b18eddc)
* build: removes unused variable i to avoid compiler warningRobert Bragg2011-10-171-2/+0
| | | | | | Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 8325ca00b8b04f65ab833714cfa2b43094676cbc)
* arbfp: assume GL_TEXTURE_2D target for NULL textureRobert Bragg2011-10-171-2/+8
| | | | | | | | | | | | During arbfp codegen we weren't checking for NULL textures and so we would crash when trying to query a NULL texture's GL texture target. Since NULL texture targets result in ctx->default_gl_texture_2d_tex being bound we can assume that a NULL texture corresponds to a GL_TEXTURE_2D target. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit dd5208b0ba248990e92b71f6c420757eb06c4b9c)
* x11-tfp: don't call winsys x11_damage_notify without winsysRobert Bragg2011-10-171-8/+14
| | | | | | | | | | | | | | If we failed to create a native texture from pixmap via EGL or GLX then we shouldn't call the winsys's texture_pixmap_x11_damage_notify function. By doing the validation in cogl-texture-pixmap-x11.c the winsys code can continue to assume that it doesn't need to verify there is a valid tex_pixmap->winsys pointer. Thanks to Damien Leone <dleone@nvidia.com> for catching this issue. https://bugzilla.gnome.org/show_bug.cgi?id=660184 (cherry picked from commit 1f61868fed78457c0da487d2a270804fb70dce8f)
* Added Korean translationSeong-ho, Cho2011-10-171-0/+34
|
* Updated Bulgarian translationIvaylo Valkov2011-10-151-4/+3
|
* Updated Bulgarian translationIvaylo Valkov2011-10-151-0/+35
|
* Added Hungarian translationGabor Kelemen2011-10-141-0/+36
|
* pipeline: don't leak the layers_cacheRobert Bragg2011-10-121-0/+2
| | | | | | | | | | | | | When freeing a pipeline in _cogl_pipeline_free we weren't making sure to free the layers_cache which was leading to a memory leak. Thanks to Sunjin Yang for finding this. https://bugzilla.gnome.org/show_bug.cgi?id=660986 Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 762c730d493b633f7e369b8f264358152cc2fa8b)
* Clear the color bits of the textures in the color mask testLuca Bruno2011-09-291-0/+9
| | | | | | | | | | | Uninitialized textures could contain random bits. That makes the test fail as glColorMask is used to let only one of the RGB pass through. https://bugzilla.gnome.org/show_bug.cgi?id=660387 Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit e7cdb1b11b47c81fe9e9a4815a3a2085343e03e8)
* Post-release version bump to 1.8.1Robert Bragg2011-09-191-2/+2
|
* Release 1.8.0 (release)1.8.0Robert Bragg2011-09-191-5/+5
|
* Updates NEWS for the 1.8.0 releaseRobert Bragg2011-09-191-5/+59
|
* mingw: don't fetch mesa_wgl.h + update summary blurbRobert Bragg2011-09-191-3/+2
| | | | | | | | | | | | mesa_wgl.h can no longer be fetched from upstream and since it's no longer used anyway we don't fetch this any more. This also updates the blurb printed after fetching dependencies to show how to run ./configure so we pass --enable-wgl not --enable-stub-winsys and to also pass the -I path for the cogl-cross/include directory which has the latest gl.h we fetched so the build doesn't try and use the headers shipped with the mingw toolchain which may be out-of-date. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Added Basque languageInaki Larranaga Murgoitio2011-09-191-0/+36
|
* README: s/draw pretty pictures/render/Robert Bragg2011-09-191-6/+6
| | | | | This tweaks the overview of Cogl to use more technical terminology instead of saying Cogl is used to "draw pretty pictures".
* doc/RELEASING: note that the conformance tests should be runRobert Bragg2011-09-191-1/+5
| | | | | This documents that `make check` should be run as part of the release process.
* Port the backface culling testNeil Roberts2011-09-193-101/+70
| | | | | | | This ports the backface culling conformance test to work without Clutter. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* test-utils: Use a power-of-two size for the FBONeil Roberts2011-09-191-2/+2
| | | | | | | | | When testing with COGL_DEBUG=disable-npot-textures all of the tests would fail because the testing infrastructure itself ends up creating a sliced texture and then trying to use it as a render target. This just modifies test-utils to use 512x512 for the size of the texture. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* cogl-primitives: Don't warn if using sliced textures without multi-texNeil Roberts2011-09-191-12/+16
| | | | | | | | | | | | cogl_rectangle has some validation code to check whether the first layer has a sliced texture. If so it will abandon the rest of the layers and print a warning. However it was even doing this pruning and displaying the warning if there is only one layer. This patch just makes it check whether the pipeline actually has more than one layer before pruning or displaying the warning but it will still fallback to the multiple quads path. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* Make backface culling be part of the legacy stateNeil Roberts2011-09-1912-103/+258
| | | | | | | | | | | | | | | | | | | | This adds an internal function to set the backface culling state on a pipeline. This includes properties to set the culling mode (front, back or both) and also to set which face is considered the front (COGL_WINDING_CLOCKWISE or COGL_WINDING_COUNTER_CLOCKWISE). The actual front face flushed to GL depends on whether we are rendering to an offscreen buffer or not. This means that when changing between on- and off- screen framebuffers it now checks whether the last flushed pipeline has backface culling enabled and forces a reflush of the cull face state if so. The backface culling is now set on a pipeline as part of the legacy state. This is important because some code in Cogl assumes it can flush a temporary pipeline to revert to a known state, but previously this wouldn't disable backface culling so things such as flushing the clip stack could get confused. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* cogl-framebuffer: Force flushing the color mask when changing fbsNeil Roberts2011-09-192-37/+64
| | | | | | | | | | | | | | | | | | | | | | | | When changing between two framebuffers that have different color masks it now forces the pipeline to flush the mask by setting current_pipeline_changes_since_flush. For this to work there needs to be a common bit of code that gets called when the framebuffers are changed that has access to both the old framebuffer and the new framebuffer. _cogl_set_framebuffers_real can't be used for this because when it is called from cogl_pop_framebuffer the stack entries have already changed so it can't know the old framebuffer. This patch adds a new function called notify_buffers_changed which should get called whenever the buffers are changed and it explicitly gets passed pointers to the old and new buffers. cogl_pop_framebuffer now calls this instead of trying to use _cogl_set_framebuffers_real to force a flush. This patch also fixes the ctx->window_buffer pointer. Previously this was implemented by searching in the framebuffer stack for an onscreen framebuffer whenever the current buffers are changed. However it does this after the stack has already changed so it won't usually find the right buffer. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* Add a conformance test for setting the color mask on a framebufferNeil Roberts2011-09-193-0/+121
| | | | | | | | There is a currently a bug where pushing a buffer with a different color mask will not cause the color mask to be flushed. This adds a test to demonstrate that. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* pipeline-arbfp: Check for fog on the pipeline not the legacy stateNeil Roberts2011-09-193-1/+16
| | | | | | | | | | | | | The ARBfp backend can't handle fog so it tries to check for when it's enabled and bails out. However it was checking using the global legacy state value on the CoglContext but this doesn't necessarily reflect the state that will actually be used by the pipeline because Cogl may have internally pushed a different pipeline. This patch adds an internal _cogl_pipeline_get_fog_enabled which the ARBfp backend now uses. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* Add internal _cogl_push_source to optionally disable legacy stateNeil Roberts2011-09-1910-34/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some code in Cogl such as when flushing a stencil clip assumes that it can push a temporary simple pipeline to reset to a known state for internal drawing operations. However this breaks down if the application has set any legacy state because that is set globally so it will also get applied to the internal pipeline. _cogl_draw_attributes already had an internal flag to disable applying the legacy state but I think this is quite awkward to use because not all places that push a pipeline draw the attribute buffers directly so it is difficult to pass the flag down through the layers. Conceptually the legacy state is meant to be like a layer on top of the purely pipeline-based state API so I think ideally we should have an internal function to push the source without the applying the legacy state. The legacy state can't be applied as the pipeline is pushed because the global state can be modified even after it is pushed. This patch adds a _cogl_push_source() function which takes an extra boolean flag to mark whether to enable the legacy state. The value of this flag is stored alongside the pipeline in the pipeline stack. Another new internal function called _cogl_get_enable_legacy_state queries whether the top entry in the pipeline stack has legacy state enabled. cogl-primitives and the vertex array drawing code now use this to determine whether to apply the legacy state when drawing. The COGL_DRAW_SKIP_LEGACY_STATE flag is now removed. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* cogl-path: Don't apply legacy state twice when strokingNeil Roberts2011-09-191-12/+2
| | | | | | | | | | Since 12b3d21aaa cogl is using the vertex attribute API to stroke a path. However it was still manually appllying the legacy state to the pipeline. cogl_vdraw_attributes also applies the legacy state so it ends up getting applied twice. This patch just removes it from _cogl_path_stroke_nodes. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* test-utils: Use g_setenv instead of setenvNeil Roberts2011-09-191-1/+1
| | | | | | | Apparently there is no setenv function on Windows so it's more portable to use g_setenv instead. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* winsys-glx: Fix synchronisation behaviour in _cogl_winsys_onscreen_swap_regionAdel Gadllah2011-09-193-2/+16
| | | | | | | | | | | | | | | | | This patch basically restores the logic from 1.6. There we assumed that glXCopySubBuffer won't tear and thus only needs to be throttled to the framerate, while glBlitFramebuffer needs to always wait to avoid tearing. With Nvidia drivers specifically we have seen that glBlitFramebuffer is not synchronized. Eventually the plan is that Cogl will actually take into consideration the underlying driver/hw vendor and driver version and we may want to only mark glBlitFramebuffer un-synchronized on Nvidia. https://bugzilla.gnome.org/show_bug.cgi?id=659360 Reviewed-by: Robert Bragg <robert@linux.intel.com>
* pipeline: mark all cogl-pipeline.h symbols experimentalRobert Bragg2011-09-191-2/+13
| | | | | | | | | All of the cogl_pipeline API is currently experimental so this makes sure the API is surrounded by #ifdef COGL_ENABLE_EXPERIMENTAL_API guards and all the symbols have a #define to give them an _EXP suffix as we do for other experimental API. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* pipeline: split out all layer state apisRobert Bragg2011-09-1910-2072/+2324
| | | | | | | | | | | | As part of an on-going effort to get cogl-pipeline.c into a more maintainable state this splits out all the apis relating just to layer state. This just leaves code relating to the core CoglPipeline and CoglPipelineLayer design left in cogl-pipeline.c. This splits out around 2k more lines from cogl-pipeline.c although we are still left with nearly 4k lines so we still have some way to go! Reviewed-by: Neil Roberts <neil@linux.intel.com>
* pipeline: split out all core state apisRobert Bragg2011-09-1910-1976/+2259
| | | | | | | | | | | | | | | | Since cogl-pipeline.c has become very unwieldy this make a start at trying to shape this code back into a manageable state. This patche moves all the API relating to core pipeline state into cogl-pipeline-state.c. This doesn't move code relating to layer state out nor does it move any of the code supporting the core design of CoglPipeline itself. This change alone factors out 2k lines of code from cogl-pipeline.c which is obviously a good start. The next step will be to factor out the layer state and then probably look at breaking all of this state code down into state-groups. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl: Bind the locale dir for the Cogl domainNeil Roberts2011-09-192-0/+5
| | | | | | | | | | dgettext (which Cogl is using) doesn't work unless you first tell gettext where the locale dir is for the library's domain. This just adds the necessary calls into _cogl_init. https://bugzilla.gnome.org/show_bug.cgi?id=658700 Reviewed-by: Robert Bragg <robert@linux.intel.com>
* l10n: Added Greek translation for coglIoannis Zamboukas2011-09-181-0/+35
|
* [l10n] German translationWolfgang Stöggl2011-09-181-0/+34
|
* Add simplified Chinese translation.Yinghua Wang2011-09-171-0/+33
|
* Added en_CA.poTiffany Antopolski2011-09-161-0/+35
|
* Added Serbian translationМирослав Николић2011-09-162-0/+74
|
* [l10n]Added Catalan translationLaura Balbastre2011-09-161-0/+35
|
* Added Belarusian translation.Ihar Hrachyshka2011-09-151-0/+30
|
* Added Russian translationYuri Myasoedov2011-09-141-0/+34
|
* cogl-journal: Fix software clipping for non-intersecting rectanglesNeil Roberts2011-09-141-0/+4
| | | | | | | | | | | | | | When the clip contains two rectangles which do not intersect it was generating a clip bounds where the bottom-right corner was above or to the left of the top-left corner. This would end up allowing the pixels between the two rectangles instead of clipping everything like it should. To fix this there is now an extra check which detects this situation and just clears the clip bounds to all zeroes in a similar way to what cogl-clip-stack does. https://bugzilla.gnome.org/show_bug.cgi?id=659029 Reviewed-by: Robert Bragg <robert@linux.intel.com>
* Updated Tamil TranslationsI Felix2011-09-131-0/+37
|
* cogl-path: Clear the stroke attribute buffer when modifying the pathNeil Roberts2011-09-121-2/+3
| | | | | | | | | | Commit 12b3d21a changed cogl-path so that it will use the vertex attribute API to stroke the path in a similar way to how it was using the API to fill the path. However it wasn't clearing the stroke buffer when the path is modified so it would continue to use the unmodified stroke. Reviewed-by: Robert Bragg <robert@linux.intel.com>
* Added Latvian translation.Rudolfs Mazurs2011-09-121-0/+36
|
* Updated asturian translationXandru Armesto2011-09-111-0/+37
|