# Dynamic textures clCreateFromGLTexture2D not mapping

**URL:** <https://forums.developer.nvidia.com/t/dynamic-textures-clcreatefromgltexture2d-not-mapping/21582>\
**Category:** CUDA Programming and Performance\
**Created:** [March 17, 2011, 5:45pm UTC](https://forums.developer.nvidia.com/t/dynamic-textures-clcreatefromgltexture2d-not-mapping/21582 "2011-03-17T17:45:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_M\_Geist](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Robert\_M\_Geist](https://forums.developer.nvidia.com/u/Robert_M_Geist)\
**Post date:** [March 17, 2011, 5:45pm UTC](https://forums.developer.nvidia.com/t/dynamic-textures-clcreatefromgltexture2d-not-mapping/21582/1 "2011-03-17T17:45:40Z")

</div>

Attached is a simple simulation of Conway’s Game of Life on a 2D grid (and associated kernel). With #define FULL\_INTEROP 0 it works fine. With #define FULL\_INTEROP 1, it uses clCreateFromGLTexture2D() and texture maps a square, rather than using clCreateImage2D() and glDrawPixels(). Although this version also executes without error message, the original textures are never updated - on NVIDIA platforms (G80, GT200, GF100). It works fine on a Mac! Am I missing some NVIDIA-specific context property?

Thanks for any help,  
-Robert

p.s. The site would not let me upload the kernel, newlife.cl, without renaming it. Please change the  
name back to newlife.cl before executing.

-R  
[newlife.cl.cpp](https://forums.developer.nvidia.com/uploads/short-url/wc32UMkNW6NgcEjpCXXxKnPYlzZ.cpp) (1.01 KB)  
[newlifeFI.cpp](https://forums.developer.nvidia.com/uploads/short-url/uWAh27HwjvZeIgzvnFhwGFZmhTL.cpp) (7.1 KB)
