Lars Brubaker avatar Lars Brubaker committed 6070acc

Made an option to always create gl images when needed rather than
drawing into the existing texture.

Comments (0)

Files changed (2)

RenderOpenGl/ImageGLDisplayListPlugin.cs

 either expressed or implied, of the FreeBSD Project.
 
 */
-//#define ALWAYS_CREATE_IMAGE
+#define ALWAYS_CREATE_IMAGE
 
 using System;
 using System.Collections.Generic;
             {
                 int textureToDelete = plugin.GLTextureHandle;
                 GL.DeleteTextures(1, ref textureToDelete);
+                plugin.glData.glTextureHandle = 0;
                 GL.DeleteLists(plugin.GLDisplayList, 1);
+                plugin.glData.glDisplayListHandle = 0;
                 imagesWithCacheData.Remove(imageToGetDisplayListFor.GetBuffer());
                 plugin = null;
             }
                 newPlugin.imageUpdateCount = imageToGetDisplayListFor.ChangedCount;
                 return newPlugin;
             }
-
 #else 
             if (plugin == null)
             {

examples/lion/lion.csproj

     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
-    <PlatformTarget>AnyCPU</PlatformTarget>
+    <PlatformTarget>x86</PlatformTarget>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>none</DebugType>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.