Is it possible to clamp the bgl_RenderedTexture?

So i’m trying to make a blur to work on the whole screen, it works perfectly on embedded mode.
but when I run the file on standalone mode I got this:


as you can see the edge both top and the right side isn’t clamped, and resulting a black texture appearing on the screen
how do I clamp on BGE?


Image is not displaying on my computer.

sorry, is it displaying now?

Never mind, I found the solution:

vec3 co = gl_TexCoord[0].xyz
vec4 zi = vec4(0.0);
if((co.x > 1.0)||(co.x < 0.0)){
    zi = texture2D(bgl_RenderedTexture, co.xz);
if((co.y > 1.0)||(co.y < 0.0)){
    zi = texture2D(bgl_RenderedTexture, co.yz);
gl_FragColor = zi + yourTextureVec4Here;