Browse Source

Fix for linux opengl problem.

tags/2021-05-28
Julian Storer 15 years ago
parent
commit
a23d875a44
2 changed files with 6 additions and 8 deletions
  1. +3
    -4
      juce_amalgamated.cpp
  2. +3
    -4
      src/native/linux/juce_linux_Windowing.cpp

+ 3
- 4
juce_amalgamated.cpp View File

@@ -233335,10 +233335,6 @@ private:

if (! totalArea.isEmpty())
{
#if JUCE_USE_XSHM
shmCompletedDrawing = false;
#endif

if (image == 0 || image->getWidth() < totalArea.getWidth()
|| image->getHeight() < totalArea.getHeight())
{
@@ -233368,6 +233364,9 @@ private:

for (RectangleList::Iterator i (originalRepaintRegion); i.next();)
{
#if JUCE_USE_XSHM
shmCompletedDrawing = false;
#endif
const Rectangle<int>& r = *i.getRectangle();

image->blitToWindow (peer->windowH,


+ 3
- 4
src/native/linux/juce_linux_Windowing.cpp View File

@@ -1833,10 +1833,6 @@ private:
if (! totalArea.isEmpty())
{
#if JUCE_USE_XSHM
shmCompletedDrawing = false;
#endif
if (image == 0 || image->getWidth() < totalArea.getWidth()
|| image->getHeight() < totalArea.getHeight())
{
@@ -1866,6 +1862,9 @@ private:
for (RectangleList::Iterator i (originalRepaintRegion); i.next();)
{
#if JUCE_USE_XSHM
shmCompletedDrawing = false;
#endif
const Rectangle<int>& r = *i.getRectangle();
image->blitToWindow (peer->windowH,


Loading…
Cancel
Save