Wrox Programmer Forums
|
BOOK: Professional WebGL Programming: Developing 3D Graphics for the Web
This is the forum to discuss the Wrox book Professional WebGL Programming: Developing 3D Graphics for the Web by Andreas Anyuru; ISBN: 978-1-1199-6886-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional WebGL Programming: Developing 3D Graphics for the Web section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2012, 11:57 PM
Registered User
 
Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default deleteShader

Hi,

Is this forum alive?

I am reading the first chapters of the book, and noticed the
gl.deleteShader call has been used on listing 2-1 but not on
2-2. So far can't tell if the book will eventually shed light on this.
Any hints?

Listing 2-1:
Code:
  if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
      alert("Error compiling shader" + gl.getShaderInfoLog(shader));
      gl.deleteShader(shader);   
      return null;
  }
Listing 2-2:
Code:
  if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
    alert(gl.getShaderInfoLog(shader));
    return null;
  }
Thanks,
Everton









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.